summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Grandin <grandinp@gmail.com>2019-06-04 13:23:19 -0600
committerPierre Grandin <grandinp@gmail.com>2019-06-04 13:23:19 -0600
commitef093b3715293241f68495d994a7b7d63d561526 (patch)
tree8a39153921f01c053ea0a62bf6d15c746667155b
parentda3e1e0c186dfd6c6566f798811a27d001a7fb1d (diff)
downloadnavit-windows-build-fixes.tar.gz
Testing jandegr's fix for the windows builds issueswindows-build-fixes
-rwxr-xr-xCMakeLists.txt1
-rw-r--r--navit/zipfile.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e6d4c683..3adfc54d2 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -658,6 +658,7 @@ if (WIN32 AND NOT WINCE)
set(HAVE_STDINT_H 1)
list(APPEND NAVIT_LIBS winmm)
set_with_reason(speech/cmdline "using native tts system of windows instead of espeak" TRUE)
+ set(HAVE_PRAGMA_PACK 1)
endif()
if(WINCE)
add_plugin(support/libc "wince detected" TRUE)
diff --git a/navit/zipfile.h b/navit/zipfile.h
index 9edccf2ef..8002e48d9 100644
--- a/navit/zipfile.h
+++ b/navit/zipfile.h
@@ -167,6 +167,10 @@ struct zip64_eocl {
int zip74lnum;
} ATTRIBUTE_PACKED;
+struct zip_alignment_check {
+ int x[sizeof(struct zip_cd) == 46 ? 1:-1];
+};
+
#ifdef HAVE_PRAGMA_PACK
#pragma pack(pop)
#endif