diff --git a/motorApp/NewportSrc/XPS_C8_drivers.cpp b/motorApp/NewportSrc/XPS_C8_drivers.cpp index 4439dae9..110f94c8 100644 --- a/motorApp/NewportSrc/XPS_C8_drivers.cpp +++ b/motorApp/NewportSrc/XPS_C8_drivers.cpp @@ -9,7 +9,11 @@ #include "Socket.h" #ifdef _WIN32 - #define DLL _declspec(dllexport) + #ifdef _DLL /* _DLL is defined by EPICS if we are being compiled to call DLLs */ + #define DLL _declspec(dllexport) + #else + #define DLL + #endif #else #define DLL #endif diff --git a/motorApp/NewportSrc/XPS_C8_drivers.h b/motorApp/NewportSrc/XPS_C8_drivers.h index 64f3b965..12c0f827 100644 --- a/motorApp/NewportSrc/XPS_C8_drivers.h +++ b/motorApp/NewportSrc/XPS_C8_drivers.h @@ -5,7 +5,11 @@ #ifdef _WIN32 #ifndef DLL + #ifdef _DLL /* _DLL is defined by EPICS if we are being compiled to call DLLs */ #define DLL _declspec(dllimport) + #else + #define DLL + #endif #endif #else #define DLL