diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-09-05 17:00:37 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2011-09-07 21:59:52 +0200 |
commit | 9ccfb14c08d11e3217779681123d60f930d8e684 (patch) | |
tree | 272af9cea9ec72bd7994fadfd3e462996488fb43 /girepository | |
parent | 33bbdce144d275b693752f0bc2c2f292deda854e (diff) | |
download | gobject-introspection-9ccfb14c08d11e3217779681123d60f930d8e684.tar.gz |
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
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/cmph/cmph_time.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/girepository/cmph/cmph_time.h b/girepository/cmph/cmph_time.h index d8018090..c03558fb 100644 --- a/girepository/cmph/cmph_time.h +++ b/girepository/cmph/cmph_time.h @@ -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 |