aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party/include/libcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/third_party/include/libcache.h')
-rw-r--r--src/lib/third_party/include/libcache.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/third_party/include/libcache.h b/src/lib/third_party/include/libcache.h
index 7f84b89ad..98e1e7460 100644
--- a/src/lib/third_party/include/libcache.h
+++ b/src/lib/third_party/include/libcache.h
@@ -23,15 +23,19 @@ SOFTWARE.
*
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef __DESELMO_LIBCACHE_H__
#define __DESELMO_LIBCACHE_H__
#include <stdint.h>
-typedef struct cache_entry *cache_entry;
+typedef struct cache_entry_ *cache_entry;
-typedef struct cache_entry_map *cache_entry_map;
+typedef struct cache_entry_map_ *cache_entry_map;
/**
* @brief Codes representing the result of some functions
@@ -107,3 +111,7 @@ cache_entry cache_entry_new(void);
cache_entry_map cache_entry_map_new(void);
#endif
+
+#ifdef __cplusplus
+}
+#endif