add build.cmd and make it build from command line

This commit is contained in:
u130b8
2023-09-06 14:16:24 +03:00
parent bda528569b
commit 0d0e37b561
7 changed files with 56 additions and 3 deletions

View File

@@ -165,3 +165,20 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
return 0;
}
#pragma function(memset)
void *memset(char* dst, int value, size_t count) {
while (count--) { *dst++ = value; }
return dst;
}
#pragma function(memcpy)
void *memcpy(char *dst, const char *src, size_t count) {
while (count--) { *dst++ = *src++; }
return dst;
}
void __stdcall wWinMainCRTStartup() {
int code = wWinMain(GetModuleHandle(0), 0, 0, 0);
ExitProcess(code);
}