[cogl] Win32: Update predefined cogl-defines.h's
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl] Win32: Update predefined cogl-defines.h's
- Date: Mon, 13 Feb 2012 13:32:08 +0000 (UTC)
commit 356e134ffb710eedc9404a7c9fa7629d11d68dbe
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Feb 10 11:05:23 2012 +0800
Win32: Update predefined cogl-defines.h's
-Add a define for COGL_HAS_GLIB_SUPPORT, the Visual C++ projects will build
GLib support for COGL for all builds at this time, unless there is a
significant call for the need of a COGL Visual C++ build with no
dependency on GLib
-Pre-define COGL_SYSDEF_POLL* as listed in the default values in commit
74974752 since Windows does not have poll.h and thus does not have special
values for these.
https://bugzilla.gnome.org/show_bug.cgi?id=669785
Reviewed-by: Neil Roberts <neil linux intel com>
cogl/cogl-defines.h.win32 | 8 ++++++++
cogl/cogl-defines.h.win32_SDL | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-defines.h.win32 b/cogl/cogl-defines.h.win32
index bd05950..75a70ba 100644
--- a/cogl/cogl-defines.h.win32
+++ b/cogl/cogl-defines.h.win32
@@ -35,6 +35,7 @@
G_BEGIN_DECLS
+#define COGL_HAS_GLIB_SUPPORT 1
#define COGL_HAS_WGL_SUPPORT 1
#define COGL_HAS_WIN32_SUPPORT 1
#define COGL_HAS_GL 1
@@ -55,6 +56,13 @@ G_BEGIN_DECLS
#define GLeglImageOES void *
#endif
+#define COGL_SYSDEF_POLLIN 1
+#define COGL_SYSDEF_POLLPRI 2
+#define COGL_SYSDEF_POLLOUT 4
+#define COGL_SYSDEF_POLLERR 8
+#define COGL_SYSDEF_POLLHUP 16
+#define COGL_SYSDEF_POLLNVAL 32
+
G_END_DECLS
#endif
diff --git a/cogl/cogl-defines.h.win32_SDL b/cogl/cogl-defines.h.win32_SDL
index 2ec279c..5141857 100644
--- a/cogl/cogl-defines.h.win32_SDL
+++ b/cogl/cogl-defines.h.win32_SDL
@@ -35,6 +35,7 @@
G_BEGIN_DECLS
+#define COGL_HAS_GLIB_SUPPORT 1
#define COGL_HAS_WGL_SUPPORT 1
#define COGL_HAS_WIN32_SUPPORT 1
#define COGL_HAS_SDL_SUPPORT 1
@@ -56,6 +57,13 @@ G_BEGIN_DECLS
#define GLeglImageOES void *
#endif
+#define COGL_SYSDEF_POLLIN 1
+#define COGL_SYSDEF_POLLPRI 2
+#define COGL_SYSDEF_POLLOUT 4
+#define COGL_SYSDEF_POLLERR 8
+#define COGL_SYSDEF_POLLHUP 16
+#define COGL_SYSDEF_POLLNVAL 32
+
G_END_DECLS
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]