[gobject-introspection] Windows port: cmph_time.h includes sys/resource.h which is not available on Windows.
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Windows port: cmph_time.h includes sys/resource.h which is not available on Windows.
- Date: Wed, 7 Sep 2011 20:04:11 +0000 (UTC)
commit 9ccfb14c08d11e3217779681123d60f930d8e684
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Mon Sep 5 17:00:37 2011 +0200
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
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 d801809..c03558f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]