Remove HAVE_CONFIG_H and unused CMAKE_REQUIRED_INCLUDES.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08e511b..4cadff5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -211,7 +211,6 @@
 
 find_package(ZLIB 1.1.2 REQUIRED)
 include_directories(${ZLIB_INCLUDE_DIR})
-set(CMAKE_REQUIRED_INCLUDES ${ZLIB_INCLUDE_DIR})
 
 if(ENABLE_BZIP2)
   find_package(BZip2)
@@ -281,8 +280,6 @@
   endif(CMAKE_SYSTEM_NAME MATCHES WindowsPhone OR CMAKE_SYSTEM_NAME MATCHES WindowsStore)
 endif(WIN32)
 
-ADD_DEFINITIONS("-DHAVE_CONFIG_H")
-
 # rpath handling: use rpath in installed binaries
 if(NOT CMAKE_SYSTEM_NAME MATCHES Linux)
   set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
diff --git a/lib/compat.h b/lib/compat.h
index a77c12c..a5cf728 100644
--- a/lib/compat.h
+++ b/lib/compat.h
@@ -36,9 +36,7 @@
 
 #include "zipconf.h"
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 /* to have *_MAX definitions for all types when compiling with g++ */
 #define __STDC_LIMIT_MACROS
diff --git a/lib/zipint.h b/lib/zipint.h
index 01fdc22..edf0a12 100644
--- a/lib/zipint.h
+++ b/lib/zipint.h
@@ -34,10 +34,7 @@
   IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
-
 #include "compat.h"
 
 #ifdef ZIP_ALLOCATE_BUFFER