summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2013-06-18 21:29:16 +0000
committerAndrew Stitcher <astitcher@apache.org>2013-06-18 21:29:16 +0000
commit9ce576f754c1ad5e92c2b2d295083aea0d29bda1 (patch)
tree1aae0577c2e40b6b4f004055cf8fd615df35f379 /qpid/cpp/src
parentdcbe230a40f223d1e651cbd5d5626dee8d5c71b7 (diff)
downloadqpid-python-9ce576f754c1ad5e92c2b2d295083aea0d29bda1.tar.gz
NO-JIRA: Remove useless HAVE_CONFIG_H definition
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1494316 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/CMakeLists.txt5
-rw-r--r--qpid/cpp/src/qpid/SaslFactory.cpp4
-rwxr-xr-xqpid/cpp/src/qpid/Version.h6
-rw-r--r--qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp7
-rw-r--r--qpid/cpp/src/qpid/client/ConnectionImpl.cpp4
-rw-r--r--qpid/cpp/src/qpid/client/LoadPlugins.cpp6
6 files changed, 9 insertions, 23 deletions
diff --git a/qpid/cpp/src/CMakeLists.txt b/qpid/cpp/src/CMakeLists.txt
index 03f9fae74e..c579ee94d2 100644
--- a/qpid/cpp/src/CMakeLists.txt
+++ b/qpid/cpp/src/CMakeLists.txt
@@ -1526,11 +1526,6 @@ install_pdb (qmfconsole ${QPID_COMPONENT_QMF})
#
include (legacystore.cmake)
-# This is only really needed until all the trunk builds (Linux, UNIX, Windows)
-# are all on cmake only. This is because cmake builds always have a config.h
-# file whereas older builds only have config.h on autoconf-generated builds.
-add_definitions(-DHAVE_CONFIG_H)
-
# Now create the config file from all the info learned above.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config.h)
diff --git a/qpid/cpp/src/qpid/SaslFactory.cpp b/qpid/cpp/src/qpid/SaslFactory.cpp
index 4d81a793ee..97e1d6e18a 100644
--- a/qpid/cpp/src/qpid/SaslFactory.cpp
+++ b/qpid/cpp/src/qpid/SaslFactory.cpp
@@ -24,9 +24,7 @@
#include <map>
#include <string.h>
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#ifndef HAVE_SASL
diff --git a/qpid/cpp/src/qpid/Version.h b/qpid/cpp/src/qpid/Version.h
index b4805a3757..6a06566907 100755
--- a/qpid/cpp/src/qpid/Version.h
+++ b/qpid/cpp/src/qpid/Version.h
@@ -21,11 +21,7 @@
#include <string>
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#else
-# error "config.h not generated"
-#endif
+#include "config.h"
namespace qpid {
const std::string product = PACKAGE_NAME;
diff --git a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp
index 7ab0f7f21d..1d8b117b84 100644
--- a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp
+++ b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp
@@ -19,10 +19,6 @@
*
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
#include "qpid/broker/AclModule.h"
#include "qpid/broker/Broker.h"
#include "qpid/broker/Connection.h"
@@ -30,8 +26,11 @@
#include "qpid/framing/reply_exceptions.h"
#include "qpid/framing/FieldValue.h"
#include "qpid/sys/SecuritySettings.h"
+
#include <boost/format.hpp>
+#include "config.h"
+
#if HAVE_SASL
#include <sys/stat.h>
#include <sasl/sasl.h>
diff --git a/qpid/cpp/src/qpid/client/ConnectionImpl.cpp b/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
index 056a53f263..ad8f21e7cd 100644
--- a/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
+++ b/qpid/cpp/src/qpid/client/ConnectionImpl.cpp
@@ -42,9 +42,7 @@
#include <limits>
#include <vector>
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
namespace qpid {
namespace client {
diff --git a/qpid/cpp/src/qpid/client/LoadPlugins.cpp b/qpid/cpp/src/qpid/client/LoadPlugins.cpp
index c5d8924014..65a43c4012 100644
--- a/qpid/cpp/src/qpid/client/LoadPlugins.cpp
+++ b/qpid/cpp/src/qpid/client/LoadPlugins.cpp
@@ -21,14 +21,14 @@
#include "LoadPlugins.h"
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
#include "qpid/Modules.h"
#include "qpid/sys/Shlib.h"
+
#include <string>
#include <vector>
+#include "config.h"
+
using std::vector;
using std::string;