Modified things related to epicsExportSharedSymbols so the imports and

exports are in the right places.
This commit is contained in:
Ken Evans
1998-02-03 17:26:26 +00:00
parent b06272fbf4
commit da17a3cf81
3 changed files with 31 additions and 9 deletions

View File

@@ -29,11 +29,15 @@ of this distribution.
#include <stdlib.h>
#include <stddef.h>
/* Up to now epicsShareThings have been declared as imports
* (Appropriate for other stuff)
* After setting the following they will be declared as exports
* (Appropriate for what we implenment)
*/
#define epicsExportSharedSymbols
#include "shareLib.h"
#include "adjustment.h"
#define epicsExportSharedSymbols
epicsShareFunc size_t epicsShareAPI adjustToWorstCaseAlignment(size_t size)
{
int align_size, adjust;

View File

@@ -42,15 +42,29 @@
#include <errno.h>
#include "epicsAssert.h"
/* errlog.h is included in errMdef.h for historical reasons
* We want to include errMdef.h here but not errlog.h
* (If we include it here, the epicsShareThings will be declared as import)
* Define INCerrlog to keep it from being included
*/
#define INCerrlogh
#include "errMdef.h"
#include "error.h"
/* Up to now epicsShareThings have been declared as imports
* (Appropriate for other stuff)
* After setting the following they will be declared as exports
* (Appropriate for what we implenment)
*/
#define epicsExportSharedSymbols
#include <shareLib.h>
/* Include errlog.h here (by undefining INCerrlogh) to:
* (1) Make the declarations be export
* (2) Allocate storage (Controlled by ERRLOG_INIT)
*/
#undef INCerrlogh
#define ERRLOG_INIT
#include "errlog.h"
#undef ERRLOG_INIT
#undef epicsExportSharedSymbols
#include "errMdef.h"
#include "error.h"
static int sevToLog=0;

View File

@@ -29,11 +29,15 @@ of this distribution.
#include <stdlib.h>
#include <stddef.h>
/* Up to now epicsShareThings have been declared as imports
* (Appropriate for other stuff)
* After setting the following they will be declared as exports
* (Appropriate for what we implenment)
*/
#define epicsExportSharedSymbols
#include "shareLib.h"
#include "adjustment.h"
#define epicsExportSharedSymbols
epicsShareFunc size_t epicsShareAPI adjustToWorstCaseAlignment(size_t size)
{
int align_size, adjust;