/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
- #pragma once
- // This file defines some macros for compile-time configurations.
- // (Like many projects on *nix that using autotools.)
- #if defined(WIN32) && !defined(_WIN64)
- #define WIN32_PLATFORM
- #endif
- #ifdef _MSC_VER
- #if defined(WIN32_PLATFORM) || defined(_WIN64)
- #define ENABLE_DLLCALL
- #define ENABLE_REGISTERCALLBACK
- #endif
- #endif
- #if defined(AUTOHOTKEYSC) && !defined(_WIN64)
- //#define ENABLE_EXEARC
- #endif
- #if !defined(_MBCS) && !defined(_UNICODE) && !defined(UNICODE) // If not set in project settings...
- // L: Comment out the next line to enable UNICODE:
- //#define _MBCS
- #ifndef _MBCS
- #define _UNICODE
- #define UNICODE
- #endif
- #endif
- #ifndef AUTOHOTKEYSC
- // DBGp
- #define CONFIG_DEBUGGER
- #endif
- // Generates warnings to help we check whether the codes are ready to handle Unicode or not.
- //#define CONFIG_UNICODE_CHECK
- #if !defined(UNICODE) && (!defined(_MSC_VER) || _MSC_VER < 1500)
- // These should be defined if the compiler supports these platforms, otherwise run-time OS checks may be inaccurate.
- #define CONFIG_WIN9X
- #define CONFIG_WINNT4
- #endif
- // pcre
- #ifdef UNICODE
- #define PCRE_USE_UTF16
- #endif