]> git.lyx.org Git - features.git/commitdiff
qt5: Fix use of zlib
authorVincent van Ravesteijn <vfr@lyx.org>
Sat, 29 Dec 2012 16:29:15 +0000 (17:29 +0100)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 14 May 2013 12:24:12 +0000 (14:24 +0200)
As Qt5 includes zlib as well, we have to use the same naming convention.

src/support/gzstream.h

index 858784dae94ea018a2e9dc2546924c439fc35712..01658ec341f17bbb52b5033c010b09317d8f6c6d 100644 (file)
 // standard C++ with new header file names and std:: namespace
 #include <iostream>
 #include <fstream>
+#include <QtCore>
+#if (defined Q_OS_WIN && QT_VERSION >= 0x050000)
+#define Z_PREFIX 1
+#endif
 #include <zlib.h>
 
 // For LyX