From: Jake Farrell Date: Wed, 5 Jun 2013 03:59:34 +0000 (-0400) Subject: THRIFT-1824:many compile warning, becase Thread.h includes config.h X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=240df17f85c8086bc5f9f17c28ce9e0936f65316;p=common%2Fthrift.git THRIFT-1824:many compile warning, becase Thread.h includes config.h Client: build Patch: Jake Farrell Wrap our config.h with #ifndef CONFIG_H to guard against duplicate definitions --- diff --git a/configure.ac b/configure.ac index 372f2d1c..757922ed 100755 --- 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