atomics.h 704 B

1234567891011121314151617181920
  1. #pragma once
  2. #if defined(_WIN64) && defined(_M_X64)
  3. #include "win-amd64/atomics.h"
  4. #elif defined(_WIN32) && defined(_M_IX86)
  5. #include "win-x86/atomics.h"
  6. #elif defined(__APPLE__) && defined(__amd64__)
  7. #include "osx-amd64/atomics.h"
  8. #elif defined(__APPLE__) && defined(__i386__)
  9. #include "osx-x86/atomics.h"
  10. #elif defined(__ANDROID__) && defined(__ARM_ARCH_7A__)
  11. #include "android-armv7/atomics.h"
  12. #elif defined(__ANDROID__) && (defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5TE__))
  13. #include "android-arm/atomics.h"
  14. #elif defined(__ANDROID__) && defined(__i386__)
  15. #include "android-x86/atomics.h"
  16. #elif defined(__linux__) && defined(__x86_64)
  17. #include "linux-amd64/atomics.h"
  18. #else
  19. #error Port Me!
  20. #endif