From 9b1805ea8bdc63552e4e32ff72842fce0238bb10 Mon Sep 17 00:00:00 2001 From: James Fulop <40307536+jamesfAnet@users.noreply.github.com> Date: Fri, 7 Jul 2023 13:41:42 -0700 Subject: [PATCH] fix amalgamated build (#302) --- src/filepath.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/filepath.cpp b/src/filepath.cpp index db8746c..a675aaa 100644 --- a/src/filepath.cpp +++ b/src/filepath.cpp @@ -16,7 +16,9 @@ #endif // !BX_CRT_NONE #if BX_PLATFORM_WINDOWS +#if !defined(GetModuleFileName) extern "C" __declspec(dllimport) unsigned long __stdcall GetModuleFileNameA(void* _module, char* _outFilePath, unsigned long _size); +#endif extern "C" __declspec(dllimport) unsigned long __stdcall GetTempPathA(unsigned long _max, char* _outFilePath); #elif BX_PLATFORM_OSX extern "C" int _NSGetExecutablePath(char* _buf, uint32_t* _bufSize);