Fix build for windows

This commit is contained in:
daleclack 2024-08-15 15:43:28 +08:00
parent 0e89909902
commit d9fdaffd4e
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@
#include <thread>
#include <cstdlib>
// Fix NAME_MAX macro for Microsoft Windows
#ifdef _WIN32
#define NAME_MAX _MAX_PATH
#endif
typedef unsigned short ushort;
enum PadPage