THRIFT-1824:many compile warning, becase Thread.h includes config.h
authorJake Farrell <jfarrell@apache.org>
Wed, 5 Jun 2013 03:59:34 +0000 (23:59 -0400)
committerJake 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

index 372f2d1..757922e 100755 (executable)
@@ -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