2015-07-21 21:35:56 -07:00
|
|
|
#ifndef ISAAC_DEFINES_H
|
|
|
|
#define ISAAC_DEFINES_H
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(_MSC_VER)
|
|
|
|
#ifdef ISAAC_DLL
|
2015-07-21 22:02:36 -07:00
|
|
|
#define ISAACAPI __declspec(dllexport)
|
2015-07-21 21:35:56 -07:00
|
|
|
#else
|
2015-07-21 22:02:36 -07:00
|
|
|
#define ISAACAPI __declspec(dllimport)
|
2015-07-21 21:35:56 -07:00
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define ISAACAPI __attribute__((visibility("default")))
|
|
|
|
#endif
|
|
|
|
|
2015-08-05 10:10:43 -07:00
|
|
|
#if defined(_WIN32) || defined(_MSC_VER)
|
|
|
|
#define DISABLE_MSVC_WARNING_C4251 __pragma(warning(disable: 4251))
|
|
|
|
#define RESTORE_MSVC_WARNING_C4251 __pragma(warning(default: 4251))
|
|
|
|
#define DISABLE_MSVC_WARNING_C4275 __pragma(warning(disable: 4275))
|
|
|
|
#define RESTORE_MSVC_WARNING_C4275 __pragma(warning(disable: 4275))
|
|
|
|
|
|
|
|
#else
|
2015-08-21 13:06:20 -04:00
|
|
|
#define DISABLE_MSVC_WARNING_C4251
|
|
|
|
#define RESTORE_MSVC_WARNING_C4251
|
|
|
|
#define DISABLE_MSVC_WARNING_C4275
|
|
|
|
#define RESTORE_MSVC_WARNING_C4275
|
2015-08-05 10:10:43 -07:00
|
|
|
#endif
|
|
|
|
|
2015-07-21 21:35:56 -07:00
|
|
|
#endif
|