Guest User

Untitled

a guest
Nov 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1.  
  2.  
  3.  
  4. /* INCLUDE THIS HEADER FOR FILES TO DETERMINE WHICH CODE TO USE ON WHAT PLATFORM */
  5.  
  6.  
  7. ////////COMPATABILITY DIRECTIVES
  8.  
  9. #define PLATFORM 0
  10.  
  11. #define LINUX_MAC 299
  12. #define WINDOWS 199
  13. //Will be defined if used {
  14. //#DEFINE USINGWINDOWS if compiler using windows
  15. //#DEFINE USINGLINUXORMAC if compiler using linux or mac
  16. //}
  17.  
  18. ////PLATFORM WINDOWS
  19.  
  20.  
  21. #ifdef _WIN32
  22. #define PLATFORM WINDOWS
  23. #define USINGWINDOWS
  24. #endif
  25.  
  26. #ifdef __WIN32__
  27. #define PLATFORM WINDOWS
  28. #define USINGWINDOWS
  29. #endif
  30.  
  31. #ifdef __TOS_WIN__
  32. #define PLATFORM WINDOWS
  33. #define USINGWINDOWS
  34. #endif
  35.  
  36. #ifdef __WINDOWS__
  37. #define PLATFORM WINDOWS
  38. #define USINGWINDOWS
  39. #endif
  40.  
  41. ////PLATFORM LINUX AND MAC
  42.  
  43. #ifdef __unix
  44. #define PLATFORM LINUX_MAC
  45. #define LINUXORMAC
  46. #endif
  47.  
  48. #ifdef __unix__
  49. #define PLATFORM LINUX_MAC
  50. #define LINUXORMAC
  51. #endif
Add Comment
Please, Sign In to add comment