zlib: Declare preprocessor directives at build time

This commit is contained in:
Vicent Marti 2011-07-01 17:34:27 +02:00
parent 17d523041d
commit ec62685345
2 changed files with 1 additions and 5 deletions

View File

@ -70,7 +70,7 @@ IF (WIN32 AND NOT CYGWIN)
FILE(GLOB SRC src/*.c src/win32/*.c)
ENDIF ()
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64)
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -DNO_VIZ -DSTDC -DNO_GZIP)
# Compile and link libgit2
ADD_LIBRARY(git2 ${SRC} ${SRC_ZLIB})

4
deps/zlib/zconf.h vendored
View File

@ -10,10 +10,6 @@
#include "../../src/common.h"
#define NO_GZIP
#define STDC
#define NO_VIZ
/* Jeez, don't complain about non-prototype
* forms, we didn't write zlib */
#if defined(_MSC_VER)