summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-18 20:04:13 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-18 20:04:13 +0000
commit2eafe965c949ccbc8c992e1f978298dff63113ae (patch)
treee50185abf94e1dc6d90a1664c7fbd4618a61d6de /src/Fl_win32.cxx
parent4163d5b5addeaa2cf68d2e0fc829ee80dac35a63 (diff)
Changes from Luis Ibanez to make it compile under Borland.
Includes a real bug that was in Fl_Gl_Window.c (#if WIN32) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 8d755bd04..f989a4233 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_win32.cxx,v 1.33 1999/03/04 21:20:55 mike Exp $"
+// "$Id: Fl_win32.cxx,v 1.33.2.1 1999/03/18 20:04:13 bill Exp $"
//
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
//
@@ -760,10 +760,17 @@ HINSTANCE fl_display = 0;
//
#ifndef FL_DLL
+
extern "C" {
+#ifdef BORLAND
+extern int _argc;
+extern char **_argv;
+extern FL_EXPORT int OwlMain(int, char *[]);
+#else
extern int __argc;
extern char **__argv;
-extern FL_EXPORT int main(int argc, char *argv[]);
+extern FL_EXPORT int main(int, char *[]);
+#endif
};
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
@@ -787,11 +794,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#endif // _DEBUG
// Run the standard main entry point function...
-
+#ifdef BORLAND
+ return OwlMain(_argc, _argv);
+#else
return main(__argc, __argv);
+#endif
}
-#endif /* !FL_DLL */
+#endif /* !FL_DLL */
////////////////////////////////////////////////////////////////
@@ -907,5 +917,5 @@ void Fl_Window::make_current() {
}
//
-// End of "$Id: Fl_win32.cxx,v 1.33 1999/03/04 21:20:55 mike Exp $".
+// End of "$Id: Fl_win32.cxx,v 1.33.2.1 1999/03/18 20:04:13 bill Exp $".
//