From d9fdaffd4e99992bc191ee598d555563ea6e8fcd Mon Sep 17 00:00:00 2001 From: daleclack Date: Thu, 15 Aug 2024 15:43:28 +0800 Subject: [PATCH] Fix build for windows --- Gtk4_Reset/src/ui/MyDock.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Gtk4_Reset/src/ui/MyDock.cpp b/Gtk4_Reset/src/ui/MyDock.cpp index b9c5305..93311d3 100644 --- a/Gtk4_Reset/src/ui/MyDock.cpp +++ b/Gtk4_Reset/src/ui/MyDock.cpp @@ -14,6 +14,11 @@ #include #include +// Fix NAME_MAX macro for Microsoft Windows +#ifdef _WIN32 +#define NAME_MAX _MAX_PATH +#endif + typedef unsigned short ushort; enum PadPage