diff options
author | Pierre Grandin <grandinp@gmail.com> | 2019-06-04 13:23:19 -0600 |
---|---|---|
committer | Pierre Grandin <grandinp@gmail.com> | 2019-06-04 13:23:19 -0600 |
commit | ef093b3715293241f68495d994a7b7d63d561526 (patch) | |
tree | 8a39153921f01c053ea0a62bf6d15c746667155b | |
parent | da3e1e0c186dfd6c6566f798811a27d001a7fb1d (diff) | |
download | navit-windows-build-fixes.tar.gz |
Testing jandegr's fix for the windows builds issueswindows-build-fixes
-rwxr-xr-x | CMakeLists.txt | 1 | ||||
-rw-r--r-- | navit/zipfile.h | 4 |
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 |