From: Peter Olsson Date: Tue, 14 Jan 2014 08:31:36 +0000 (+0100) Subject: Add missing EXTERN C in FS header files, needed for the upcoming mod_v8 build X-Git-Tag: v1.5.8~25^2~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b92e72ecf980028c609bd597d0e79334b0cf76;p=thirdparty%2Ffreeswitch.git Add missing EXTERN C in FS header files, needed for the upcoming mod_v8 build --- diff --git a/src/include/switch_curl.h b/src/include/switch_curl.h index dc31269465..68479ad0b2 100644 --- a/src/include/switch_curl.h +++ b/src/include/switch_curl.h @@ -32,6 +32,7 @@ #define __SWITCH_CURL_H #include "curl/curl.h" +SWITCH_BEGIN_EXTERN_C typedef void switch_CURL; typedef struct curl_slist switch_curl_slist_t; @@ -50,6 +51,8 @@ SWITCH_DECLARE(const char *) switch_curl_easy_strerror(switch_CURLcode errornum SWITCH_DECLARE(void) switch_curl_init(void); SWITCH_DECLARE(void) switch_curl_destroy(void); SWITCH_DECLARE(switch_status_t) switch_curl_process_form_post_params(switch_event_t *event, switch_CURL *curl_handle, struct curl_httppost **formpostp); + +SWITCH_END_EXTERN_C #endif diff --git a/src/include/switch_dso.h b/src/include/switch_dso.h index 7f9e2dfa53..1e89bcd4a5 100644 --- a/src/include/switch_dso.h +++ b/src/include/switch_dso.h @@ -21,6 +21,8 @@ #ifndef FREESWITCH_DSO_H #define FREESWITCH_DSO_H +SWITCH_BEGIN_EXTERN_C + typedef int (*switch_dso_func_t) (void); #ifdef WIN32 typedef HINSTANCE switch_dso_lib_t; @@ -35,6 +37,7 @@ SWITCH_DECLARE(switch_dso_lib_t) switch_dso_open(const char *path, int global, c SWITCH_DECLARE(switch_dso_func_t) switch_dso_func_sym(switch_dso_lib_t lib, const char *sym, char **err); SWITCH_DECLARE(void *) switch_dso_data_sym(switch_dso_lib_t lib, const char *sym, char **err); +SWITCH_END_EXTERN_C #endif