diff options
author | Armin Rigo <arigo@tunes.org> | 2015-05-17 09:22:15 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-05-17 09:22:15 +0200 |
commit | d58366642899f3cbb5fb45ae9564fb7627a3ed13 (patch) | |
tree | e740f6f485fcc60906860e86751da26ed86235f9 /demo | |
parent | 387e34fa34ab4d80c1025d45b27f69aabf725695 (diff) | |
download | cffi-d58366642899f3cbb5fb45ae9564fb7627a3ed13.tar.gz |
Best-effort attempt at supporting C++. There is still one issue shown
in test_recompiler if we replace "if 0:" with "if 1:".
Diffstat (limited to 'demo')
-rw-r--r-- | demo/bsdopendirtype_build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demo/bsdopendirtype_build.py b/demo/bsdopendirtype_build.py index a771b68..abfe064 100644 --- a/demo/bsdopendirtype_build.py +++ b/demo/bsdopendirtype_build.py @@ -15,9 +15,11 @@ ffi.cdef(""" """) ffi.set_source("_bsdopendirtype", """ +extern "C" { #include <sys/types.h> #include <dirent.h> -""") +} +""", source_extension='.cpp') if __name__ == '__main__': ffi.compile() |