Commit ec626853 by Vicent Marti

zlib: Declare preprocessor directives at build time

parent 17d52304
...@@ -70,7 +70,7 @@ IF (WIN32 AND NOT CYGWIN) ...@@ -70,7 +70,7 @@ IF (WIN32 AND NOT CYGWIN)
FILE(GLOB SRC src/*.c src/win32/*.c) FILE(GLOB SRC src/*.c src/win32/*.c)
ENDIF () ENDIF ()
ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64) ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -DNO_VIZ -DSTDC -DNO_GZIP)
# Compile and link libgit2 # Compile and link libgit2
ADD_LIBRARY(git2 ${SRC} ${SRC_ZLIB}) ADD_LIBRARY(git2 ${SRC} ${SRC_ZLIB})
......
...@@ -10,10 +10,6 @@ ...@@ -10,10 +10,6 @@
#include "../../src/common.h" #include "../../src/common.h"
#define NO_GZIP
#define STDC
#define NO_VIZ
/* Jeez, don't complain about non-prototype /* Jeez, don't complain about non-prototype
* forms, we didn't write zlib */ * forms, we didn't write zlib */
#if defined(_MSC_VER) #if defined(_MSC_VER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment