diff --git a/src/devStream.h b/src/devStream.h index f97bbe3..7b23676 100644 --- a/src/devStream.h +++ b/src/devStream.h @@ -40,6 +40,12 @@ #define DO_NOT_CONVERT 2 #define INIT_RUN (!interruptAccept) +#ifdef epicsExportSharedSymbols +# define devStream_epicsExportSharedSymbols +# undef epicsExportSharedSymbols +# include "shareLib.h" +#endif + #include "epicsVersion.h" #ifdef BASE_VERSION #define EPICS_3_13 @@ -49,12 +55,6 @@ extern "C" { #endif #endif -#ifdef epicsExportSharedSymbols -# define devStream_epicsExportSharedSymbols -# undef epicsExportSharedSymbols -# include -#endif - #include "dbCommon.h" #include "dbScan.h" #include "devSup.h" @@ -65,12 +65,6 @@ extern "C" { #include "dbEvent.h" #include "epicsMath.h" -#ifdef devStream_epicsExportSharedSymbols -# undef devStream_epicsExportSharedSymbols -# define epicsExportSharedSymbols -# include -#endif - #ifdef EPICS_3_13 #ifdef __cplusplus } @@ -79,6 +73,12 @@ extern "C" { #include "epicsStdioRedirect.h" #endif +#ifdef devStream_epicsExportSharedSymbols +# undef devStream_epicsExportSharedSymbols +# define epicsExportSharedSymbols +# include "shareLib.h" +#endif + #ifdef _WIN32 typedef ptrdiff_t ssize_t; #endif