diff --git a/src/copy/pv/pvArrayPlugin.h b/src/copy/pv/pvArrayPlugin.h index 3fe8bb0..739a4b9 100644 --- a/src/copy/pv/pvArrayPlugin.h +++ b/src/copy/pv/pvArrayPlugin.h @@ -6,8 +6,9 @@ #ifndef PVARRAYPLUGIN_H #define PVARRAYPLUGIN_H -#if defined(_WIN32) && !defined(NOMINMAX) -#define NOMINMAX +#ifdef epicsExportSharedSymbols +# define pvaConstantsepicsExportSharedSymbols +# undef epicsExportSharedSymbols #endif #include diff --git a/src/copy/pv/pvDeadbandPlugin.h b/src/copy/pv/pvDeadbandPlugin.h index 0675ef4..b4d917a 100644 --- a/src/copy/pv/pvDeadbandPlugin.h +++ b/src/copy/pv/pvDeadbandPlugin.h @@ -6,8 +6,9 @@ #ifndef PVDEADBANDPLUGIN_H #define PVDEADBANDPLUGIN_H -#if defined(_WIN32) && !defined(NOMINMAX) -#define NOMINMAX +#ifdef epicsExportSharedSymbols +# define pvaConstantsepicsExportSharedSymbols +# undef epicsExportSharedSymbols #endif #include diff --git a/src/copy/pv/pvPlugin.h b/src/copy/pv/pvPlugin.h index 21cf735..a66814f 100644 --- a/src/copy/pv/pvPlugin.h +++ b/src/copy/pv/pvPlugin.h @@ -9,8 +9,9 @@ #ifndef PVPLUGIN_H #define PVPLUGIN_H -#if defined(_WIN32) && !defined(NOMINMAX) -#define NOMINMAX +#ifdef epicsExportSharedSymbols +# define pvaConstantsepicsExportSharedSymbols +# undef epicsExportSharedSymbols #endif #include diff --git a/src/copy/pv/pvStructureCopy.h b/src/copy/pv/pvStructureCopy.h index d2e864a..4564640 100644 --- a/src/copy/pv/pvStructureCopy.h +++ b/src/copy/pv/pvStructureCopy.h @@ -10,8 +10,9 @@ #ifndef PVSTRUCTURECOPY_H #define PVSTRUCTURECOPY_H -#if defined(_WIN32) && !defined(NOMINMAX) -#define NOMINMAX +#ifdef epicsExportSharedSymbols +# define pvaConstantsepicsExportSharedSymbols +# undef epicsExportSharedSymbols #endif #include diff --git a/src/copy/pv/pvTimestampPlugin.h b/src/copy/pv/pvTimestampPlugin.h index 4fa0492..1c9d77a 100644 --- a/src/copy/pv/pvTimestampPlugin.h +++ b/src/copy/pv/pvTimestampPlugin.h @@ -6,8 +6,9 @@ #ifndef PVTIMESTAMPPLUGIN_H #define PVTIMESTAMPPLUGIN_H -#if defined(_WIN32) && !defined(NOMINMAX) -#define NOMINMAX +#ifdef epicsExportSharedSymbols +# define pvaConstantsepicsExportSharedSymbols +# undef epicsExportSharedSymbols #endif #include