X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=include%2Flibmemcachedprotocol-0.0%2Fcallback.h;h=646843292809ddd010a2bfa7c86a7bd3b40b1ace;hb=aeac01630eed825d8a624e7fd7c107d47bb2e40c;hp=ceb441bf6141d8de74c4af4a53e925a87e8815dd;hpb=dfdcce95b625e98144c1681f05b337648b92f20f;p=awesomized%2Flibmemcached diff --git a/include/libmemcachedprotocol-0.0/callback.h b/include/libmemcachedprotocol-0.0/callback.h index ceb441bf..64684329 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 \ No newline at end of file