aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2010-09-19 19:00:05 +0200
committerLars Hjemli <hjemli@gmail.com>2010-09-19 19:00:05 +0200
commita9d6e6e695da6c6ed7f4bb32630ab2f3d9314806 (patch)
treede8271ebfabd244437cd68021c8af86391afb9bd /Makefile
parentMerge branch 'lh/section-from-path' (diff)
parentprefer html_raw() to write() (diff)
downloadcgit-a9d6e6e695da6c6ed7f4bb32630ab2f3d9314806.tar.xz
cgit-a9d6e6e695da6c6ed7f4bb32630ab2f3d9314806.zip
Merge branch 'ml/bugfix'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 23fdd53..6a47ed2 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,11 @@ INSTALL = install
#
# Define NEEDS_LIBICONV if linking with libc is not enough (eg. Darwin).
#
+# Define NO_C99_FORMAT if your formatted IO functions (printf/scanf et.al.)
+# do not support the 'size specifiers' introduced by C99, namely ll, hh,
+# j, z, t. (representing long long int, char, intmax_t, size_t, ptrdiff_t).
+# some C compilers supported these specifiers prior to C99 as an extension.
+#
#-include config.mak
@@ -127,6 +132,9 @@ endif
ifdef NO_STRCASESTR
CFLAGS += -DNO_STRCASESTR
endif
+ifdef NO_C99_FORMAT
+ CFLAGS += -DNO_C99_FORMAT
+endif
ifdef NO_OPENSSL
CFLAGS += -DNO_OPENSSL
GIT_OPTIONS += NO_OPENSSL=1