/source/config.h

https://github.com/infogulch/AutoHotkey_L · C Header · 48 lines · 28 code · 10 blank · 10 comment · 7 complexity · 15fb878bdcf454e1bf2feaae5d16cf13 MD5 · raw file

  1. #pragma once
  2. // This file defines some macros for compile-time configurations.
  3. // (Like many projects on *nix that using autotools.)
  4. #if defined(WIN32) && !defined(_WIN64)
  5. #define WIN32_PLATFORM
  6. #endif
  7. #ifdef _MSC_VER
  8. #if defined(WIN32_PLATFORM) || defined(_WIN64)
  9. #define ENABLE_DLLCALL
  10. #define ENABLE_REGISTERCALLBACK
  11. #endif
  12. #endif
  13. #if defined(AUTOHOTKEYSC) && !defined(_WIN64)
  14. //#define ENABLE_EXEARC
  15. #endif
  16. #if !defined(_MBCS) && !defined(_UNICODE) && !defined(UNICODE) // If not set in project settings...
  17. // L: Comment out the next line to enable UNICODE:
  18. //#define _MBCS
  19. #ifndef _MBCS
  20. #define _UNICODE
  21. #define UNICODE
  22. #endif
  23. #endif
  24. #ifndef AUTOHOTKEYSC
  25. // DBGp
  26. #define CONFIG_DEBUGGER
  27. #endif
  28. // Generates warnings to help we check whether the codes are ready to handle Unicode or not.
  29. //#define CONFIG_UNICODE_CHECK
  30. #if !defined(UNICODE) && (!defined(_MSC_VER) || _MSC_VER < 1500)
  31. // These should be defined if the compiler supports these platforms, otherwise run-time OS checks may be inaccurate.
  32. #define CONFIG_WIN9X
  33. #define CONFIG_WINNT4
  34. #endif
  35. // pcre
  36. #ifdef UNICODE
  37. #define PCRE_USE_UTF16
  38. #endif