mirror of
https://github.com/psforever/PSCrypto.git
synced 2026-01-19 19:14:44 +00:00
Guard BUILD_DLL for Windows only
This commit is contained in:
parent
7dbf15eeae
commit
dd72589e35
|
|
@ -1,10 +1,14 @@
|
|||
// PSCrypto - PSForever
|
||||
// https://cryptopp.com/wiki/Diffie-Hellman
|
||||
|
||||
#ifdef BUILD_DLL
|
||||
#define DLL_EXPORT extern "C" __declspec(dllexport)
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
# ifdef BUILD_DLL
|
||||
# define DLL_EXPORT extern "C" __declspec(dllexport)
|
||||
# else
|
||||
# define DLL_EXPORT extern "C" __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
#define DLL_EXPORT extern "C" __declspec(dllimport)
|
||||
# define DLL_EXPORT extern "C"
|
||||
#endif
|
||||
|
||||
#include "osrng.h"
|
||||
|
|
|
|||
Loading…
Reference in a new issue