From acd742d22593a52d2e5f5bcdb2c81175d61c9b11 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Aug 2013 23:47:31 +0200 Subject: ConfigData: remove C++ checks --- src/ConfigData.hxx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/ConfigData.hxx b/src/ConfigData.hxx index b5ec30efd..a70426f11 100644 --- a/src/ConfigData.hxx +++ b/src/ConfigData.hxx @@ -24,13 +24,9 @@ #include "gerror.h" #include "gcc.h" -#ifdef __cplusplus #include #include #include -#endif - -#ifdef __cplusplus struct block_param { std::string name; @@ -48,8 +44,6 @@ struct block_param { :name(_name), value(_value), line(_line), used(false) {} }; -#endif - struct config_param { /** * The next config_param with the same name. The destructor @@ -60,7 +54,6 @@ struct config_param { char *value; unsigned int line; -#ifdef __cplusplus std::vector block_params; /** @@ -89,21 +82,12 @@ struct config_param { gcc_nonnull_all gcc_pure const block_param *GetBlockParam(const char *_name) const; -#endif }; -#ifdef __cplusplus - struct ConfigData { std::array params; }; -#endif - -#ifdef __cplusplus -extern "C" { -#endif - gcc_pure const char * config_get_block_string(const struct config_param *param, const char *name, @@ -133,8 +117,4 @@ bool config_get_block_bool(const struct config_param *param, const char *name, bool default_value); -#ifdef __cplusplus -} -#endif - #endif -- cgit v1.2.3