Guard BUILD_DLL for Windows only

This commit is contained in:
Chord 2016-07-25 01:25:51 -04:00
parent 7dbf15eeae
commit dd72589e35

View file

@ -1,10 +1,14 @@
// PSCrypto - PSForever // PSCrypto - PSForever
// https://cryptopp.com/wiki/Diffie-Hellman // https://cryptopp.com/wiki/Diffie-Hellman
#ifdef BUILD_DLL #if defined(_WIN32) || defined(__CYGWIN__)
#define DLL_EXPORT extern "C" __declspec(dllexport) # ifdef BUILD_DLL
# define DLL_EXPORT extern "C" __declspec(dllexport)
# else
# define DLL_EXPORT extern "C" __declspec(dllimport)
# endif
#else #else
#define DLL_EXPORT extern "C" __declspec(dllimport) # define DLL_EXPORT extern "C"
#endif #endif
#include "osrng.h" #include "osrng.h"