summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOLFDB <olf@eisenzelt.de>2019-02-26 21:15:25 +0100
committerGitHub <noreply@github.com>2019-02-26 21:15:25 +0100
commit43c649de9793331600ed4c1212c249f9da08622d (patch)
tree22c37ebb8980c46c626091e3c202ad59e9abc05a
parent50eb35ea7d379d3dfaf539f927c20a1530ee828b (diff)
downloadnavit-43c649de9793331600ed4c1212c249f9da08622d.tar.gz
FIX:WIN32 build with gtk_drawing_area
When building WIN32 with gtk_drawing_area the binfile map was not working (struct size of zipcd was 48)
-rw-r--r--navit/map/binfile/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/navit/map/binfile/CMakeLists.txt b/navit/map/binfile/CMakeLists.txt
index 62ef1326b..63ef605ac 100644
--- a/navit/map/binfile/CMakeLists.txt
+++ b/navit/map/binfile/CMakeLists.txt
@@ -1 +1,6 @@
+if(HAVE_GTK2 AND NOT MSVC)
+ #binfile for WIN32 needs -mno-ms-bitfields
+ remove_definitions("-mms-bitfields")
+ add_definitions("-mno-ms-bitfields")
+endif(HAVE_GTK2 AND NOT MSVC)
module_add_library(map_binfile binfile.c)