fix build

This commit is contained in:
freedom
2023-09-06 05:40:15 -06:00
parent d01b18e035
commit d7e5d10209

View File

@@ -166,6 +166,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
return 0; return 0;
} }
#ifdef MEMSETFIX
#pragma function(memset) #pragma function(memset)
void *memset(char* dst, int value, size_t count) { void *memset(char* dst, int value, size_t count) {
while (count--) { *dst++ = value; } while (count--) { *dst++ = value; }
@@ -182,3 +183,4 @@ void __stdcall wWinMainCRTStartup() {
int code = wWinMain(GetModuleHandle(0), 0, 0, 0); int code = wWinMain(GetModuleHandle(0), 0, 0, 0);
ExitProcess(code); ExitProcess(code);
} }
#endif