فهرست منبع

Enabled declaration of main

The MSVC linker correctly determiens the correct function to link to
depending on the subsystem.
Matt Clarkson 10 سال پیش
والد
کامیت
b77ee408f1
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      src/main.c

+ 1 - 3
src/main.c

@@ -2068,9 +2068,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR cmdline, int show)
 	return (int)msg.wParam;
 }
 
-#if defined(CONSOLE)
-void main(void) { WinMain(0, 0, 0, 0); }
-#endif
+int main(void) { return WinMain(0, 0, 0, 0); }
 
 #elif defined(USE_COCOA)
 #import <Cocoa/Cocoa.h>