Always rely on __has_include(<winres.h>)

This commit is contained in:
Ilya Fedin 2024-10-31 02:42:28 +04:00 committed by John Preston
parent ebd0c3696a
commit e0e4a7bec6
2 changed files with 8 additions and 20 deletions

View file

@ -6,17 +6,11 @@
// //
// Generated from the TEXTINCLUDE 2 resource. // Generated from the TEXTINCLUDE 2 resource.
// //
#if defined(__MINGW64__) || defined(__MINGW32__) #if defined(__has_include) && __has_include(<winres.h>)
// MinGW-w64, MinGW #include <winres.h>
#if defined(__has_include) && __has_include(<winres.h>)
#include <winres.h>
#else
#include <afxres.h>
#include <winresrc.h>
#endif
#else #else
// MSVC, Windows SDK #include <afxres.h>
#include <winres.h> #include <winresrc.h>
#endif #endif
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View file

@ -6,17 +6,11 @@
// //
// Generated from the TEXTINCLUDE 2 resource. // Generated from the TEXTINCLUDE 2 resource.
// //
#if defined(__MINGW64__) || defined(__MINGW32__) #if defined(__has_include) && __has_include(<winres.h>)
// MinGW-w64, MinGW #include <winres.h>
#if defined(__has_include) && __has_include(<winres.h>)
#include <winres.h>
#else
#include <afxres.h>
#include <winresrc.h>
#endif
#else #else
// MSVC, Windows SDK #include <afxres.h>
#include <winres.h> #include <winresrc.h>
#endif #endif
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////