diff --git a/motorApp/NewportSrc/hxp_drivers.h b/motorApp/NewportSrc/hxp_drivers.h index 8c21de28..45c6bc22 100644 --- a/motorApp/NewportSrc/hxp_drivers.h +++ b/motorApp/NewportSrc/hxp_drivers.h @@ -6,12 +6,16 @@ *************************************************/ #ifdef _WIN32 - #ifndef DLL - #define DLL _declspec(dllimport) - #endif + #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 - #define __stdcall + #define DLL + #define __stdcall #endif #ifdef __cplusplus extern "C"