1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-25 12:32:53 +00:00

Add support c++ compile (#60)

This commit is contained in:
feiniks
2022-04-25 11:58:24 +08:00
committed by GitHub
parent e72c1158c8
commit 54145b03f4
3 changed files with 38 additions and 14 deletions

View File

@@ -1,16 +1,20 @@
#ifndef SEARPC_CLIENT_H
#define SEARPC_CLIENT_H
#include <glib.h>
#include <glib-object.h>
#include <jansson.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef LIBSEARPC_EXPORTS
#define LIBSEARPC_API __declspec(dllexport)
#else
#define LIBSEARPC_API
#endif
#include <glib.h>
#include <glib-object.h>
#include <jansson.h>
#ifndef DFT_DOMAIN
#define DFT_DOMAIN g_quark_from_string(G_LOG_DOMAIN)
#endif
@@ -137,5 +141,9 @@ searpc_client_generic_callback (char *retstr, size_t len,
#define TRANSPORT_ERROR "Transport Error"
#define TRANSPORT_ERROR_CODE 500
#ifdef __cplusplus
}
#endif
#endif