From 0d78b3f8cd6428953181e8bb53b25731229b2aed Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Mon, 1 Feb 2016 15:25:08 +0200 Subject: [PATCH] Add extern "C" to gwdirs.h. Fix line-length as well. --- server/include/gwdirs.h.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/server/include/gwdirs.h.in b/server/include/gwdirs.h.in index 4d2e8266d..685c00017 100644 --- a/server/include/gwdirs.h.in +++ b/server/include/gwdirs.h.in @@ -23,12 +23,17 @@ #endif #include #include +#include + +EXTERN_C_BLOCK_BEGIN + /** Default file locations, configured by CMake */ static const char* default_cnf_fname = "maxscale.cnf"; static const char* default_configdir = "/etc"; -static const char* default_piddir = "@MAXSCALE_VARDIR@/run/maxscale"; /*< This should be changed to just /run eventually, - * the /var/run folder is an old standard and the newer FSH 3.0 - * uses /run for PID files.*/ + /*< This should be changed to just /run eventually, + * the /var/run folder is an old standard and the newer FSH 3.0 + * uses /run for PID files.*/ +static const char* default_piddir = "@MAXSCALE_VARDIR@/run/maxscale"; static const char* default_logdir = "@MAXSCALE_VARDIR@/log/maxscale"; static const char* default_datadir = "@MAXSCALE_VARDIR@/lib/maxscale/data"; static const char* default_libdir = "@CMAKE_INSTALL_PREFIX@/@MAXSCALE_LIBDIR@"; @@ -57,4 +62,7 @@ char* get_configdir(); char* get_piddir(); char* get_logdir(); char* get_langdir(); + +EXTERN_C_BLOCK_END + #endif