summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo/embedding.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/demo/embedding.py b/demo/embedding.py
index 411d86f..c04b02a 100644
--- a/demo/embedding.py
+++ b/demo/embedding.py
@@ -3,7 +3,9 @@ import cffi
ffi = cffi.FFI()
ffi.cdef("""
- extern "Python" int add(int, int);
+ extern "Python" {
+ int add(int, int);
+ }
""", dllexport=True)
ffi.embedding_init_code("""