From 73d01dd659f82f2c53fd7cedcf0bbb8d47f70ab2 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 20 May 2007 00:01:06 +0000 Subject: Fix all compiler warnings from various build systems. Fix vsnprintf() implementation to properly handle long and long long ints. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_call_main.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/fl_call_main.c') diff --git a/src/fl_call_main.c b/src/fl_call_main.c index e29f5853e..563d9652b 100644 --- a/src/fl_call_main.c +++ b/src/fl_call_main.c @@ -48,26 +48,26 @@ #if defined(WIN32) && !defined(FL_DLL) && !defined (__GNUC__) -#include -#include -#include +# include +# include +# include -#ifdef __MWERKS__ -# include -#endif +# ifdef __MWERKS__ +# include +# endif extern int main(int, char *[]); -#ifdef BORLAND5 -# define __argc _argc -# define __argv _argv -#endif +# ifdef BORLAND5 +# define __argc _argc +# define __argv _argv +# endif /* BORLAND5 */ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { int rc; -#ifdef _DEBUG +# ifdef _DEBUG /* * If we are using compiling in debug mode, open a console window so * we can see any printf's, etc... @@ -82,24 +82,24 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, freopen("conin$", "r", stdin); freopen("conout$", "w", stdout); freopen("conout$", "w", stderr); -#endif /* _DEBUG */ +# endif /* _DEBUG */ /* Run the standard main entry point function... */ rc = main(__argc, __argv); -#ifdef _DEBUG +# ifdef _DEBUG fclose(stdin); fclose(stdout); fclose(stderr); -#endif /* _DEBUG */ +# endif /* _DEBUG */ return rc; } -#else +#elif defined(__future_compiler_test) /* This code to prevent "empty translation unit" or similar warnings... */ static void dummy(void) {} -#endif +#endif // WIN32 && !FL_DLL && !__GNUC__ /* * End of "$Id$". -- cgit v1.2.3