IRayCommon.h 455 B

12345678910111213141516171819
  1. // IRayCommon.h
  2. //
  3. #pragma once
  4. #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
  5. #define SDK_CAPI_EXPORT extern "C" __declspec(dllexport)
  6. #define SDK_CAPI_IMPORT extern "C" __declspec(dllimport)
  7. #elif defined(linux) || defined(__linux__) || defined(__linux) || defined(__APPLE__)
  8. #define SDK_CAPI_IMPORT extern "C" __attribute__((visibility("default")))
  9. #define SDK_CAPI_EXPORT extern "C" __attribute__((visibility("default")))
  10. #endif