From: <sv...@op...> - 2025-01-03 20:59:00
|
Author: manx Date: Fri Jan 3 21:58:48 2025 New Revision: 22760 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22760 Log: Merged revision(s) 22743 from trunk/OpenMPT: [Ref] mpt/base/detect_os.hpp: Add MPT_OS_CYGWIN detection. ........ Modified: branches/OpenMPT-1.30/ (props changed) branches/OpenMPT-1.30/src/mpt/base/detect_os.hpp Modified: branches/OpenMPT-1.30/src/mpt/base/detect_os.hpp ============================================================================== --- branches/OpenMPT-1.30/src/mpt/base/detect_os.hpp Fri Jan 3 21:57:54 2025 (r22759) +++ branches/OpenMPT-1.30/src/mpt/base/detect_os.hpp Fri Jan 3 21:58:48 2025 (r22760) @@ -24,6 +24,10 @@ #error "Emscripten >= 1.39.7 is required." #endif #endif +#elif defined(__CYGWIN__) +#define MPT_OS_CYGWIN 1 + + #elif defined(_WIN32) #define MPT_OS_WINDOWS 1 #if defined(WINAPI_FAMILY) @@ -75,6 +79,9 @@ #ifndef MPT_OS_EMSCRIPTEN #define MPT_OS_EMSCRIPTEN 0 #endif +#ifndef MPT_OS_CYGWIN +#define MPT_OS_CYGWIN 0 +#endif #ifndef MPT_OS_WINDOWS #define MPT_OS_WINDOWS 0 #endif |