summaryrefslogtreecommitdiff
path: root/src/fl_call_main.c
diff options
context:
space:
mode:
authorCarl E. Thompson <devel-fltk@carlthompson.net>1999-11-30 13:14:27 +0000
committerCarl E. Thompson <devel-fltk@carlthompson.net>1999-11-30 13:14:27 +0000
commit6e6261c5bd8445d045ece6ac70fc06d22feb2c5c (patch)
treef39db40dd69d9581aec8a48cdda60217d281b24f /src/fl_call_main.c
parentec8a5806343ac6613022641862aada53ee189693 (diff)
Fixed fl_call_main.c to compile with BC5. This fix is already in the 2.0
tree. Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_call_main.c')
-rw-r--r--src/fl_call_main.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/fl_call_main.c b/src/fl_call_main.c
index a53dce449..0c1a2b5af 100644
--- a/src/fl_call_main.c
+++ b/src/fl_call_main.c
@@ -1,5 +1,5 @@
/*
- * "$Id: fl_call_main.c,v 1.1.2.4 1999/10/25 20:32:49 mike Exp $"
+ * "$Id: fl_call_main.c,v 1.1.2.5 1999/11/30 13:14:27 carl Exp $"
*
* Copyright 1998-1999 by Bill Spitzak and others.
*
@@ -44,12 +44,16 @@
* Microsoft(r) Windows(r) that allows for it.
*/
-#if defined(WIN32) && !defined(FL_DLL)
+#if defined(WIN32) && !defined(FL_DLL) && !defined (__GNUC__)
#include <windows.h>
#include <stdio.h>
extern int main(int, char *[]);
+#ifdef BORLAND5
+#define __argc _argc
+#define __argv _argv
+#endif
extern int __argc;
extern char **__argv;
@@ -79,6 +83,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#endif
/*
- * End of "$Id: fl_call_main.c,v 1.1.2.4 1999/10/25 20:32:49 mike Exp $".
+ * End of "$Id: fl_call_main.c,v 1.1.2.5 1999/11/30 13:14:27 carl Exp $".
*/