From: <sv...@op...> - 2025-01-02 21:56:40
|
Author: manx Date: Thu Jan 2 22:56:29 2025 New Revision: 22717 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22717 Log: [Imp] mpt/check/libc.hpp: Guard against UNICODE/_UNICODE mismatch. Modified: trunk/OpenMPT/src/mpt/check/libc.hpp Modified: trunk/OpenMPT/src/mpt/check/libc.hpp ============================================================================== --- trunk/OpenMPT/src/mpt/check/libc.hpp Thu Jan 2 22:55:20 2025 (r22716) +++ trunk/OpenMPT/src/mpt/check/libc.hpp Thu Jan 2 22:56:29 2025 (r22717) @@ -4,6 +4,7 @@ #define MPT_CHECK_LIBC_HPP #include "mpt/base/detect_libc.hpp" +#include "mpt/base/detect_os.hpp" #include "mpt/base/detect_quirks.hpp" #include "mpt/base/compiletime_warning.hpp" @@ -30,4 +31,14 @@ #endif #endif +#ifndef MPT_CHECK_LIBC_IGNORE_WARNING_UNICODE_MISMATCH +#if MPT_OS_WINDWOS +#ifdef UNICODE +#ifndef _UNICODE +MPT_WARNING("UNICODE is defined but _UNICODE is not defined. Please #define _UNICODE.") +#endif +#endif +#endif // MPT_OS_WINDOWS +#endif + #endif // MPT_CHECK_LIBC_HPP |