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:
Andrew Johnson
2016-04-06 10:59:23 -05:00
parent 1e031bf393
commit e28fd6129e
9 changed files with 32 additions and 77 deletions
+2 -13
View File
@@ -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
View File
@@ -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>