msvc support
[m6w6/libmemcached] / include / libmemcachedprotocol-0.0 / callback.h
index ceb441bf6141d8de74c4af4a53e925a87e8815dd..646843292809ddd010a2bfa7c86a7bd3b40b1ace 100644 (file)
 
 #pragma once
 
+#ifdef __cplusplus
+# include <cstdint>
+extern "C" {
+#else
+# include <stdint.h>
+#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