Only #deinfe __USE_XOPEN if not already defined. On my Suse 10.2 it was

already #defined to 1, so this would create a warning/error.


svn path=/trunk/; revision=21508
This commit is contained in:
Jörg Mayer 2007-04-22 20:04:34 +00:00
parent 065be642f4
commit b16106f89f
3 changed files with 16 additions and 6 deletions

View File

@ -18,10 +18,14 @@
/*
* Just make sure we include the prototype for strptime as well
* (needed for glibc 2.2)
* (needed for glibc 2.2) but make sure we do this only if not
* yet defined.
*/
#define __USE_XOPEN
#ifndef __USE_XOPEN
# define __USE_XOPEN
#endif
#include <time.h>
#include <glib.h>

View File

@ -29,9 +29,12 @@
/*
* Just make sure we include the prototype for strptime as well
* (needed for glibc 2.2)
* (needed for glibc 2.2) but make sure we do this only if not
* yet defined.
*/
#define __USE_XOPEN
#ifndef __USE_XOPEN
# define __USE_XOPEN
#endif
#include <time.h>

View File

@ -88,9 +88,12 @@
/*
* Just make sure we include the prototype for strptime as well
* (needed for glibc 2.2)
* (needed for glibc 2.2) but make sure we do this only if not
* yet defined.
*/
#define __USE_XOPEN
#ifndef
# define __USE_XOPEN
#endif
#include <time.h>
#include <glib.h>