summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-10-22 07:53:38 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2001-10-22 07:53:38 (GMT)
commite2c07775f2cda3c25a8e2ed47fbf1f0de4d548c1 (patch)
treebabe71531827f706e5edcdab055dda4f42f3373c
parent8c04e1cc0b889110b73242bded290252ec265afd (diff)
downloadlpsm-e2c07775f2cda3c25a8e2ed47fbf1f0de4d548c1.zip
lpsm-e2c07775f2cda3c25a8e2ed47fbf1f0de4d548c1.tar.gz
lpsm-e2c07775f2cda3c25a8e2ed47fbf1f0de4d548c1.tar.bz2
lpsm-e2c07775f2cda3c25a8e2ed47fbf1f0de4d548c1.tar.xz
Add extern "C" definitions for C++lpsm-0.1.3
-rw-r--r--lpsm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lpsm.h b/lpsm.h
index b7c5f13..485d669 100644
--- a/lpsm.h
+++ b/lpsm.h
@@ -25,6 +25,10 @@
#include <inttypes.h>
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Low-level core routines */
/* When checkpointing, specify the level of synchronicity required */
@@ -69,4 +73,8 @@ extern inline void *lpsm_calloc(size_t __nmemb, size_t __size)
struct lpsm_alloc_stats *lpsm_alloc_stats(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* LPSM_H */