Guest User

Untitled

a guest
Jan 6th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.63 KB | None | 0 0
  1. #if defined(_MSC_VER)
  2.     #define R_COMPILER_MSVC
  3.     #define R_WINDOWS
  4.  
  5.     #ifdef _WIN64
  6.         #define R_64BIT
  7.     #else
  8.         #define R_32BIT
  9.     #endif
  10.  
  11.     #ifdef _DEBUG
  12.         #define R_DEBUG
  13.     #endif
  14. #elif defined(__GNUC__)
  15.     #define R_COMPILER_GCC
  16.  
  17.     #ifdef __CYGWIN__
  18.         #define R_WINDOWS
  19.     #endif
  20.     #ifdef __linux__
  21.         #define R_LINUX
  22.         #define _GNU_SOURCE
  23.     #endif
  24.     #ifdef __APPLE__
  25.         #define R_APPLE
  26.     #endif
  27.  
  28.     #if __x86_64__ || __ppc64__
  29.         #define R_64BIT
  30.     #else
  31.         #define R_32BIT
  32.     #endif
  33. #else
  34.     #error "unsupported compiler"
  35. #endif
Advertisement
Add Comment
Please, Sign In to add comment