2
0

config.h 572 B

12345678910111213141516
  1. #if defined (__linux__)
  2. #define AL_API __attribute__((visibility("protected")))
  3. #define ALC_API __attribute__((visibility("protected")))
  4. #define ALIGN(x) __attribute__((aligned(x)))
  5. #define RESTRICT __restrict
  6. #elif defined(_MSC_VER)
  7. #define AL_API __declspec(dllexport)
  8. #define ALC_API __declspec(dllexport)
  9. #define ALIGN(x) __declspec(align(x))
  10. #define RESTRICT __restrict
  11. #else
  12. #define AL_API __declspec(dllexport)
  13. #define ALC_API __declspec(dllexport)
  14. #define ALIGN(x) __attribute__((aligned(x)))
  15. #define RESTRICT __restrict
  16. #endif // defined(_MSC_VER)