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:
parent
065be642f4
commit
b16106f89f
@ -18,10 +18,14 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Just make sure we include the prototype for strptime as well
|
* 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 <time.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
@ -29,9 +29,12 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Just make sure we include the prototype for strptime as well
|
* 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 <time.h>
|
||||||
|
|
||||||
|
@ -88,9 +88,12 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Just make sure we include the prototype for strptime as well
|
* 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 <time.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user