Remove need to undef epicsExportSharedSymbols
This approach works OK, but makes it much harder to find files that have mistakes in them since they can cause other functions to get the wrong import/export setting.
This commit is contained in:
@@ -9,23 +9,12 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#ifdef epicsExportSharedSymbols
|
||||
# define inetAddressUtilExportSharedSymbols
|
||||
# undef epicsExportSharedSymbols
|
||||
#endif
|
||||
#include <osiSock.h>
|
||||
#include <shareLib.h>
|
||||
|
||||
#include <pv/pvType.h>
|
||||
#include <pv/byteBuffer.h>
|
||||
|
||||
#include <osiSock.h>
|
||||
|
||||
#ifdef inetAddressUtilExportSharedSymbols
|
||||
# define epicsExportSharedSymbols
|
||||
# undef inetAddressUtilExportSharedSymbols
|
||||
#endif
|
||||
|
||||
#include <shareLib.h>
|
||||
|
||||
|
||||
// TODO implement using smart pointers
|
||||
|
||||
|
||||
+1
-12
@@ -7,18 +7,7 @@
|
||||
#ifndef LOGGER_H_
|
||||
#define LOGGER_H_
|
||||
|
||||
#ifdef epicsExportSharedSymbols
|
||||
# define loggerEpicsExportSharedSymbols
|
||||
# undef epicsExportSharedSymbols
|
||||
#endif
|
||||
|
||||
#include <pv/pvType.h>
|
||||
#include <errlog.h>
|
||||
|
||||
#ifdef loggerEpicsExportSharedSymbols
|
||||
# define epicsExportSharedSymbols
|
||||
#undef loggerEpicsExportSharedSymbols
|
||||
#endif
|
||||
#include <string>
|
||||
|
||||
#include <shareLib.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user