C++ support.
[yaz-moved-to-github.git] / include / nmem.h
index 227d99f..5e0a521 100644 (file)
 #ifndef NMEM_H
 #define NMEM_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct nmem_control *NMEM;
 
 void nmem_reset(NMEM n);
@@ -37,4 +41,8 @@ int nmem_total(NMEM n);
 NMEM nmem_create(void);
 void nmem_destroy(NMEM n);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif