aboutsummaryrefslogtreecommitdiff
path: root/include/libsurvive/poser.h
diff options
context:
space:
mode:
authorDr. Orion Lawlor <lawlor@alaska.edu>2017-04-17 21:38:46 -0800
committerDr. Orion Lawlor <lawlor@alaska.edu>2017-04-17 21:38:46 -0800
commit06f580d722136051c55653f6767f185b396f3371 (patch)
tree693507ec399449049d33ad367002910b16db05d2 /include/libsurvive/poser.h
parent9b1309c6dd9b38502b04d6bedb64f57acc7341e8 (diff)
downloadlibsurvive-06f580d722136051c55653f6767f185b396f3371.tar.gz
libsurvive-06f580d722136051c55653f6767f185b396f3371.tar.bz2
Support calling the library from C++, by adding extern "C" decorations, and including correct prototypes.
Diffstat (limited to 'include/libsurvive/poser.h')
-rw-r--r--include/libsurvive/poser.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libsurvive/poser.h b/include/libsurvive/poser.h
index 497b009..582590e 100644
--- a/include/libsurvive/poser.h
+++ b/include/libsurvive/poser.h
@@ -3,6 +3,11 @@
#include "survive_types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum PoserType_t
{
POSERDATA_NONE = 0,
@@ -55,4 +60,8 @@ typedef struct
typedef int (*PoserCB)( SurviveObject * so, PoserData * pd );
+#ifdef __cplusplus
+};
+#endif
+
#endif