X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fcommon.h;h=ec58fd8e2cc9c4b89cdb34c28c991cce11b66f03;hb=fd151d70d25ba4cae4f90a1e57435a8cc72e9c09;hp=d0a4ab4ce69d6cfc7717e70ceb34090c27b4a523;hpb=b048aacba5d279f3271163cfaa0704684beca1e2;p=awesomized%2Flibmemcached diff --git a/libmemcached/common.h b/libmemcached/common.h index d0a4ab4c..ec58fd8e 100644 --- a/libmemcached/common.h +++ b/libmemcached/common.h @@ -65,16 +65,14 @@ # endif #endif -/* Define this here, which will turn on the visibilty controls while we're - * building libmemcached. - */ -#define BUILDING_LIBMEMCACHED 1 - #include #include #include -#include + +#ifdef __cplusplus +extern "C" { +#endif typedef struct memcached_server_st * memcached_server_write_instance_st; @@ -87,6 +85,9 @@ LIBMEMCACHED_LOCAL memcached_return_t memcached_server_execute(memcached_st *ptr, memcached_server_execute_fn callback, void *context); +#ifdef __cplusplus +} // extern "C" +#endif /* These are private not to be installed headers */