]> git.lyx.org Git - lyx.git/blobdiff - src/support/gzstream.h
qt5: Fix use of zlib
[lyx.git] / src / support / gzstream.h
index 0adeb62a99b89f4ab89e562da744d7a896ac07c0..01658ec341f17bbb52b5033c010b09317d8f6c6d 100644 (file)
 // standard C++ with new header file names and std:: namespace
 #include <iostream>
 #include <fstream>
-#ifdef HAVE_ZLIB_H
-# include <zlib.h>
+#include <QtCore>
+#if (defined Q_OS_WIN && QT_VERSION >= 0x050000)
+#define Z_PREFIX 1
 #endif
+#include <zlib.h>
 
 // For LyX
 #define GZSTREAM_NAMESPACE gz