提交 64b92e72 authored 作者: Peter Olsson's avatar Peter Olsson

Add missing EXTERN C in FS header files, needed for the upcoming mod_v8 build

上级 5f7b00fb
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#define __SWITCH_CURL_H #define __SWITCH_CURL_H
#include "curl/curl.h" #include "curl/curl.h"
SWITCH_BEGIN_EXTERN_C
typedef void switch_CURL; typedef void switch_CURL;
typedef struct curl_slist switch_curl_slist_t; typedef struct curl_slist switch_curl_slist_t;
...@@ -51,6 +52,8 @@ SWITCH_DECLARE(void) switch_curl_init(void); ...@@ -51,6 +52,8 @@ SWITCH_DECLARE(void) switch_curl_init(void);
SWITCH_DECLARE(void) switch_curl_destroy(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_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 #endif
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#ifndef FREESWITCH_DSO_H #ifndef FREESWITCH_DSO_H
#define FREESWITCH_DSO_H #define FREESWITCH_DSO_H
SWITCH_BEGIN_EXTERN_C
typedef int (*switch_dso_func_t) (void); typedef int (*switch_dso_func_t) (void);
#ifdef WIN32 #ifdef WIN32
typedef HINSTANCE switch_dso_lib_t; 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 ...@@ -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(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_DECLARE(void *) switch_dso_data_sym(switch_dso_lib_t lib, const char *sym, char **err);
SWITCH_END_EXTERN_C
#endif #endif
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论