mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
Windows port: cmph_time.h includes sys/resource.h which is not available on Windows.
So only include it when WIN32 is not defined. https://bugzilla.gnome.org/show_bug.cgi?id=620566
This commit is contained in:
parent
61c8a0dda2
commit
522ebcd2d6
@ -6,11 +6,9 @@
|
|||||||
#undef ELAPSED_TIME_IN_uSECONDS
|
#undef ELAPSED_TIME_IN_uSECONDS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef __GNUC__
|
||||||
// include headers to use gettimeofday
|
|
||||||
#else
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#ifndef WIN32
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user