diff options
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h index 1c2441b2b..5376985db 100755 --- a/libglusterfsclient/src/libglusterfsclient.h +++ b/libglusterfsclient/src/libglusterfsclient.h @@ -20,7 +20,22 @@ #ifndef _LIBGLUSTERFSCLIENT_H #define _LIBGLUSTERFSCLIENT_H -#include <sys/cdefs.h> +#ifndef __BEGIN_DECLS +#ifdef __cplusplus +#define __BEGIN_DECLS extern "C" { +#else +#define __BEGIN_DECLS +#endif +#endif + +#ifndef __END_DECLS +#ifdef __cplusplus +#define __END_DECLS } +#else +#define __END_DECLS +#endif +#endif + __BEGIN_DECLS |