summaryrefslogtreecommitdiff
path: root/cffi/_embedding.h
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-07-20 09:07:17 +0200
committerArmin Rigo <arigo@tunes.org>2017-07-20 09:07:17 +0200
commit81ed984afae3e3199e8fc1462ae3b4bc5c9af656 (patch)
tree44e32d1a0537634e2be94980e9a9f55e186fbc26 /cffi/_embedding.h
parent207ef7dc2c8a8503f35ff3c769b00ac103c241e4 (diff)
downloadcffi-81ed984afae3e3199e8fc1462ae3b4bc5c9af656.tar.gz
Support some sub-combination involving C++ and Python 3.x
Diffstat (limited to 'cffi/_embedding.h')
-rw-r--r--cffi/_embedding.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cffi/_embedding.h b/cffi/_embedding.h
index 2064eca..32e54fe 100644
--- a/cffi/_embedding.h
+++ b/cffi/_embedding.h
@@ -1,6 +1,11 @@
/***** Support code for embedding *****/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
#if defined(_MSC_VER)
# define CFFI_DLLEXPORT __declspec(dllexport)
#elif defined(__GNUC__)
@@ -525,3 +530,7 @@ static int cffi_start_python(void)
#undef cffi_compare_and_swap
#undef cffi_write_barrier
#undef cffi_read_barrier
+
+#ifdef __cplusplus
+}
+#endif