Skip to content

Commit ee45a78

Browse files
committed
fix: fix mingw detection in windows specifix , as gcc 15 changed a few things
1 parent 92efcba commit ee45a78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helper/message_box.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
namespace helper {
1515

16-
#ifdef _WIN32
16+
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) || defined(__MINGW32__) \
17+
|| defined(__MINGW64__)
1718
// "WinUser.h" defines "#define MessageBox MessageBoxA"
1819
// which breaks this valid code, I love windows xD.
1920
#ifdef MessageBox

0 commit comments

Comments
 (0)