소스 검색

added __cdecl to main()

valenok 15 년 전
부모
커밋
e728c85863
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -388,7 +388,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR cmdline, int show) {
 }
 #endif /* _WIN32 */
 
-int main(int argc, char *argv[]) {
+int WINCDECL main(int argc, char *argv[]) {
   start_mongoose(argc, argv);
   printf("%s started on port(s) %s with web root [%s]\n",
          server_name, mg_get_option(ctx, "listening_ports"),