summaryrefslogtreecommitdiff
path: root/src/fl_call_main.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-03-15 22:39:57 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-03-15 22:39:57 +0000
commit3a9d945d0701afbffa02e3331271103c6ce93f0a (patch)
tree030a83c68010332b48f9e73f7587271d84cb91af /src/fl_call_main.c
parent1ede363769f972270603bee70bd7dd5fde3db5e7 (diff)
Use the Multithreaded DLL runtime model for all projects - I haven't found
a system yet that this doesn't work on, and you get smaller executables... FLUID source needs Windows headers for GetTempPath and MAX_PATH definitions. Visual C++ complained about the "char **/*argv*/" in CubeMain; added a space so that */ is not seen. Include <stdlib.h> to get argc/argv definitions rather than hardcoding the declarations. This seems to work in all modes. Add can_do_overlay() method for WIN32 (seems to work on my TNT card at least) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_call_main.c')
-rw-r--r--src/fl_call_main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fl_call_main.c b/src/fl_call_main.c
index c11ad4515..647a8bfe9 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.8 2001/01/22 15:13:40 easysw Exp $"
+ * "$Id: fl_call_main.c,v 1.1.2.9 2001/03/15 22:39:56 easysw Exp $"
*
* Copyright 1998-2001 by Bill Spitzak and others.
*
@@ -48,14 +48,13 @@
#include <windows.h>
#include <stdio.h>
+#include <stdlib.h>
extern int main(int, char *[]);
#ifdef BORLAND5
#define __argc _argc
#define __argv _argv
#endif
-extern int __argc;
-extern char **__argv;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow) {
@@ -83,6 +82,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
#endif
/*
- * End of "$Id: fl_call_main.c,v 1.1.2.8 2001/01/22 15:13:40 easysw Exp $".
+ * End of "$Id: fl_call_main.c,v 1.1.2.9 2001/03/15 22:39:56 easysw Exp $".
*/