versioninfo.h 743 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include "lmms_basics.h"
  2. #ifdef __GNUC__
  3. #define COMPILER_VERSION "GCC " __VERSION__
  4. #elif defined(_MSC_VER)
  5. #define COMPILER_VERSION "MSVC " STRINGIFY(_MSC_FULL_VER)
  6. #else
  7. #define COMPILER_VERSION "unknown compiler"
  8. #endif
  9. #ifdef LMMS_HOST_X86
  10. #define MACHINE "i386"
  11. #endif
  12. #ifdef LMMS_HOST_X86_64
  13. #define MACHINE "x86_64"
  14. #endif
  15. #ifndef MACHINE
  16. #define MACHINE "unknown processor"
  17. #endif
  18. #ifdef LMMS_BUILD_LINUX
  19. #define PLATFORM "Linux"
  20. #endif
  21. #ifdef LMMS_BUILD_APPLE
  22. #define PLATFORM "OS X"
  23. #endif
  24. #ifdef LMMS_BUILD_OPENBSD
  25. #define PLATFORM "OpenBSD"
  26. #endif
  27. #ifdef LMMS_BUILD_FREEBSD
  28. #define PLATFORM "FreeBSD"
  29. #endif
  30. #ifdef LMMS_BUILD_WIN32
  31. #define PLATFORM "win32"
  32. #endif
  33. #ifdef LMMS_BUILD_HAIKU
  34. #define PLATFORM "Haiku"
  35. #endif