Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
89be183
)
THRIFT-1824:many compile warning, becase Thread.h includes config.h
author
Jake Farrell
<jfarrell@apache.org>
Wed, 5 Jun 2013 03:59:34 +0000
(23:59 -0400)
committer
Jake Farrell
<jfarrell@apache.org>
Wed, 5 Jun 2013 03:59:34 +0000
(23:59 -0400)
Client: build
Patch: Jake Farrell
Wrap our config.h with #ifndef CONFIG_H to guard against duplicate definitions
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
372f2d1
..
757922e
100755
(executable)
--- a/
configure.ac
+++ b/
configure.ac
@@
-574,6
+574,15
@@
fi
AM_CONDITIONAL([WITH_BOOSTTHREADS], [test "x[$]ENABLE_BOOSTTHREADS" = "x1"])
AC_CONFIG_HEADERS(config.h:config.hin)
+# gruard against pre defined config.h
+AH_TOP([
+#ifndef CONFIG_H
+#define CONFIG_H
+])
+AH_BOTTOM([
+#endif
+])
+
AC_CONFIG_FILES([
Makefile