X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=include%2Flibmemcachedprotocol-0.0%2Fcallback.h;h=55382e2982a4043acde3694be8ea5d1605a7a2fe;hb=24f797294aca130e70317003f4ee42540429ec63;hp=ceb441bf6141d8de74c4af4a53e925a87e8815dd;hpb=95d03c7c94f6888d3c904d2321e6f526db7cff7f;p=awesomized%2Flibmemcached diff --git a/include/libmemcachedprotocol-0.0/callback.h b/include/libmemcachedprotocol-0.0/callback.h index ceb441bf..55382e29 100644 --- a/include/libmemcachedprotocol-0.0/callback.h +++ b/include/libmemcachedprotocol-0.0/callback.h @@ -15,6 +15,17 @@ #pragma once +#ifdef __cplusplus +# include +extern "C" { +#else +# include +#endif + +#ifdef _MSC_VER +# undef interface +#endif + /** * Callback to send data back from a successful GET/GETQ/GETK/GETKQ command * @@ -362,3 +373,7 @@ typedef struct { memcached_binary_protocol_callback_v1_st v1; } interface; } memcached_binary_protocol_callback_st; + +#ifdef __cplusplus +} +#endif