summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CMakeLists.txt3
-rw-r--r--cmake/config.h.cmake19
2 files changed, 20 insertions, 2 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index c2dbf069..9eb65b2e 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -93,7 +93,8 @@ if(wince)
include_directories(${wcelibcex}/include/wcelibcex ${wcelibcex}/src)
add_definitions(
- -DDBUS_WINCE
+# see config.h.cmake
+# -DDBUS_WINCE
-DWINCE
-DWIN32_PLATFORM_PSPC
-D_WINDOWS
diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake
index 7faffef4..b90005e8 100644
--- a/cmake/config.h.cmake
+++ b/cmake/config.h.cmake
@@ -117,9 +117,25 @@
/* Define to 1 if you have struct cmsgred */
#cmakedefine HAVE_CMSGCRED 1
-#if defined(_WIN32) || defined(_WIN64)
+// system type defines
+#if defined(_WIN32) || defined(_WIN64) || defined(_WINCE)
# define DBUS_WIN
# define DBUS_WIN_FIXME 1
+#endif
+
+#if defined(_WIN32)
+# define DBUS_WIN32
+#endif
+
+#if defined(_WIN64)
+# define DBUS_WIN64
+#endif
+
+#if defined(_WINCE)
+# define DBUS_WINCE
+#endif
+
+#if defined(_WIN32) || defined(_WIN64)
// mingw mode_t
# ifdef HAVE_STDIO_H
# include <stdio.h>
@@ -138,6 +154,7 @@
# endif
#endif // defined(_WIN32) || defined(_WIN64)
+
#ifdef interface
#undef interface
#endif