Remove WinAPI #undef hacks needed for mingw-std-threads

Instead, we rename the conflicting symbols.
This commit is contained in:
Rémi Verschelde 2025-04-29 12:00:50 +02:00
parent ce94b26de7
commit c019b76523
No known key found for this signature in database
GPG key ID: C3336907360768E1
15 changed files with 46 additions and 73 deletions

View file

@ -230,17 +230,13 @@ class EditorScriptCodeCompletionCache;
class FindInFilesDialog;
class FindInFilesPanel;
#ifdef MINGW_ENABLED
#undef FILE_OPEN
#endif
class ScriptEditor : public PanelContainer {
GDCLASS(ScriptEditor, PanelContainer);
enum {
FILE_NEW,
FILE_NEW_TEXTFILE,
FILE_OPEN,
FILE_OPEN_, // Conflict with WinAPI.
FILE_REOPEN_CLOSED,
FILE_OPEN_RECENT,
FILE_SAVE,