Rename macro WIN32 to _WIN32
This commit is contained in:
+6
-4
@@ -47,7 +47,9 @@ void Log(int level, const char* file, int line, const char* format, ...);
|
||||
// Initialize the logger with a level.
|
||||
#define WEBCC_LOG_INIT(dir, modes) webcc::LogInit(dir, modes);
|
||||
|
||||
#if (defined(WIN32) || defined(_WIN64))
|
||||
// Definition of _WIN32 & _WIN64:
|
||||
// https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2015
|
||||
#if (defined(_WIN32) || defined(_WIN64))
|
||||
|
||||
// See: https://stackoverflow.com/a/8488201
|
||||
// ISSUE: The last path separator of __FILE__ in a header file becomes "/"
|
||||
@@ -116,13 +118,13 @@ void Log(int level, const char* file, int line, const char* format, ...);
|
||||
#define LOG_ERRO(format, args...)
|
||||
#endif
|
||||
|
||||
#endif // defined(WIN32) || defined(_WIN64)
|
||||
#endif // defined(_WIN32) || defined(_WIN64)
|
||||
|
||||
#else // WEBCC_ENABLE_LOG == 0
|
||||
|
||||
#define WEBCC_LOG_INIT(dir, modes)
|
||||
|
||||
#if (defined(WIN32) || defined(_WIN64))
|
||||
#if (defined(_WIN32) || defined(_WIN64))
|
||||
#define LOG_VERB(format, ...)
|
||||
#define LOG_INFO(format, ...)
|
||||
#define LOG_WARN(format, ...)
|
||||
@@ -132,7 +134,7 @@ void Log(int level, const char* file, int line, const char* format, ...);
|
||||
#define LOG_INFO(format, args...)
|
||||
#define LOG_WARN(format, args...)
|
||||
#define LOG_ERRO(format, args...)
|
||||
#endif // defined(WIN32) || defined(_WIN64)
|
||||
#endif // defined(_WIN32) || defined(_WIN64)
|
||||
|
||||
#endif // WEBCC_ENABLE_LOG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user