mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-27 18:10:03 +01: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,12 +6,10 @@
|
||||
#undef ELAPSED_TIME_IN_uSECONDS
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
// include headers to use gettimeofday
|
||||
#else
|
||||
#ifdef __GNUC__
|
||||
#ifdef __GNUC__
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#ifndef WIN32
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user