From f4763112b3b2f7caaff0cbb145acd92e8601cbc1 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 21 Apr 2010 14:25:29 +0200 Subject: [PATCH 1/3] Move definition of _WIN32_WCE to configure.in (cmake defines it already). --- configure.in | 1 + dbus/dbus-sysdeps-wince-glue.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 4bc50e7..484e6ae 100644 --- a/configure.in +++ b/configure.in @@ -100,6 +100,7 @@ if test "$dbus_win" = yes; then fi if test "$dbus_wince" = yes; then AC_DEFINE(DBUS_WINCE,1,[Defined if we run on a W32 CE API based system]) + AC_DEFINE(_WIN32_WCE, 0x0502, [Defined to get newer W32 CE APIs]) fi else AC_DEFINE(DBUS_UNIX,1,[Defined if we run on a Unix-based system]) diff --git a/dbus/dbus-sysdeps-wince-glue.h b/dbus/dbus-sysdeps-wince-glue.h index 6d8e3b1..b1c3d9d 100644 --- a/dbus/dbus-sysdeps-wince-glue.h +++ b/dbus/dbus-sysdeps-wince-glue.h @@ -28,8 +28,7 @@ #include #include -/* For getaddrinfo. */ -#define _WIN32_WCE 0x0401 +/* For getaddrinfo, configure/cmake defined _WIN32_WCE to something >= 0x0401. */ #include #undef interface -- 1.7.0.4