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:
Dieter Verfaillie 2011-09-05 17:00:37 +02:00
parent 61c8a0dda2
commit 522ebcd2d6

View File

@ -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