make debug build work, remove /NODEFAULTLIB for now

This commit is contained in:
u130b8
2023-09-06 15:05:22 +03:00
parent 0d0e37b561
commit 5d0a3f1ccf
2 changed files with 9 additions and 6 deletions

View File

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