Skip to content

Commit 7875f6d

Browse files
committed
fix: CopyFileA on windows
1 parent cfc5cb1 commit 7875f6d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FBX2glTF.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
#if defined(_WIN32)
1515
// Tell Windows not to define min() and max() macros
1616
#define NOMINMAX
17+
// Prevent Windows from defining CopyFile macro
18+
#define WIN32_LEAN_AND_MEAN
1719
#include <Windows.h>
20+
// Undefine problematic Windows macros after inclusion
21+
#ifdef CopyFile
22+
#undef CopyFile
23+
#endif
1824
#endif
1925

2026
#define FBX2GLTF_VERSION std::string("0.9.7")

0 commit comments

Comments
 (0)