versions.h 959 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #pragma once
  2. #ifndef versions_H_
  3. #define versions_H_
  4. #define SERV_OSNAME "posix"
  5. #ifdef _WIN32
  6. #undef SERV_OSNAME
  7. #ifndef _WIN64
  8. #define SERV_OSNAME "win32"
  9. #define SERV_UPDATE_NAME "win32"
  10. #else
  11. #define SERV_OSNAME "win64"
  12. #define SERV_UPDATE_NAME "win64"
  13. #endif
  14. #endif
  15. #ifdef __APPLE_CC__
  16. #undef SERV_OSNAME
  17. #define SERV_OSNAME "mac"
  18. #endif
  19. #ifdef PLATFORM_LINUX
  20. #undef SERV_OSNAME
  21. #ifndef __LP64__
  22. #define SERV_OSNAME "posix(linux x86)"
  23. #define SERV_UPDATE_NAME "linux_x86"
  24. #else
  25. #define SERV_OSNAME "posix(linux x64)"
  26. #define SERV_UPDATE_NAME "linux_x64"
  27. #endif
  28. #endif
  29. #ifdef PLATFORM_BSD
  30. #undef SERV_OSNAME
  31. #define SERV_OSNAME "posix(bsd)"
  32. #define SERV_UPDATE_NAME "bsd"
  33. #endif
  34. #ifdef PLATFORM_ARMv6
  35. #undef SERV_OSNAME
  36. #define SERV_OSNAME "armv6(rpi)"
  37. #define SERV_UPDATE_NAME "rpi"
  38. #endif
  39. #ifdef PLATFORM_ARMv7
  40. #undef SERV_OSNAME
  41. #define SERV_OSNAME "armv7(rpi2)"
  42. #define SERV_UPDATE_NAME "rpi2"
  43. #endif
  44. #endif