aboutsummaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-07 21:32:48 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-07 21:32:48 -0800
commit8fc11b5aa98540f7caab87e22e5aae63512893a2 (patch)
tree42cc20556d8b4766d9a0adbcc2e32de22b9fc6c9 /git-compat-util.h
parent92e802c6ccb96d1b5e8561b0a136d43d82253293 (diff)
parent6f2eacfeb2c67a7e05f98df2288d7893d3368c8e (diff)
downloadgit-8fc11b5aa98540f7caab87e22e5aae63512893a2.tar.gz
git-8fc11b5aa98540f7caab87e22e5aae63512893a2.tar.xz
GIT 1.0.8v1.0.8
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index c353b276f..12ce6590b 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -1,6 +1,14 @@
#ifndef GIT_COMPAT_UTIL_H
#define GIT_COMPAT_UTIL_H
+#ifndef FLEX_ARRAY
+#if defined(__GNUC__) && (__GNUC__ < 3)
+#define FLEX_ARRAY 0
+#else
+#define FLEX_ARRAY /* empty */
+#endif
+#endif
+
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>