summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/base')
-rw-r--r--src/base/main.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/base/main.c b/src/base/main.c
index 60a6066..cc9330f 100644
--- a/src/base/main.c
+++ b/src/base/main.c
@@ -113,15 +113,24 @@ int tryExistFile (const char *s)
else
return 0;
}
-
+#ifdef __WIN32__
+int WINAPI WinMain(
+ HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPSTR lpCmdLine,
+ int nCmdShow
+)
+#else
int main(int argc, char *argv[])
+#endif
{
listHelp = newList();
srand( (unsigned) time(NULL) );
-
+#ifndef __WIN32__
my_argc = argc;
my_argv = argv;
+#endif
/*
test_space();
exit(0);