projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- changed the main INCLUDE_DIRECTORIES definition to place the main header
[freeglut]
/
src
/
fg_main.c
diff --git
a/src/fg_main.c
b/src/fg_main.c
index
f409b33
..
330a7bc
100644
(file)
--- a/
src/fg_main.c
+++ b/
src/fg_main.c
@@
-1,5
+1,5
@@
/*
/*
- * freeglut_main.c
+ * fg_main.c
*
* The windows message processing methods.
*
*
* The windows message processing methods.
*
@@
-27,17
+27,8
@@
#include <GL/freeglut.h>
#include "fg_internal.h"
#include <GL/freeglut.h>
#include "fg_internal.h"
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
+#include <errno.h>
#include <stdarg.h>
#include <stdarg.h>
-#ifdef HAVE_VFPRINTF
-# define VFPRINTF(s,f,a) vfprintf((s),(f),(a))
-#elif defined(HAVE__DOPRNT)
-# define VFPRINTF(s,f,a) _doprnt((f),(a),(s))
-#else
-# define VFPRINTF(s,f,a)
-#endif
/*
* Try to get the maximum value allowed for ints, falling back to the minimum
/*
* Try to get the maximum value allowed for ints, falling back to the minimum
@@
-289,7
+280,7
@@
void fgError( const char *fmt, ... )
fprintf( stderr, "freeglut ");
if( fgState.ProgramName )
fprintf( stderr, "(%s): ", fgState.ProgramName );
fprintf( stderr, "freeglut ");
if( fgState.ProgramName )
fprintf( stderr, "(%s): ", fgState.ProgramName );
- VFPRINTF( stderr, fmt, ap );
+ vfprintf( stderr, fmt, ap );
fprintf( stderr, "\n" );
va_end( ap );
fprintf( stderr, "\n" );
va_end( ap );
@@
-322,7
+313,7
@@
void fgWarning( const char *fmt, ... )
fprintf( stderr, "freeglut ");
if( fgState.ProgramName )
fprintf( stderr, "(%s): ", fgState.ProgramName );
fprintf( stderr, "freeglut ");
if( fgState.ProgramName )
fprintf( stderr, "(%s): ", fgState.ProgramName );
- VFPRINTF( stderr, fmt, ap );
+ vfprintf( stderr, fmt, ap );
fprintf( stderr, "\n" );
va_end( ap );
fprintf( stderr, "\n" );
va_end( ap );