ruby/win32/winmain.c
Nobuyoshi Nakada 8fe8021f5a
Win32: Expose wchar main routine only
Warned if both of `main` and `wmain` are exposed:
```
LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup'
```
2024-11-17 22:49:16 +09:00

11 lines
187 B
C

#include <windows.h>
#include <stdio.h>
extern int wmain(int, WCHAR**);
int WINAPI
WinMain(HINSTANCE current, HINSTANCE prev, LPSTR cmdline, int showcmd)
{
return wmain(0, NULL);
}