forked from epics_driver_modules/motorBase
Change logic for definition of DLL so that it works if application is being statically built
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user