summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2012-08-11 20:45:14 +0200
committerArmin Rigo <arigo@tunes.org>2012-08-11 20:45:14 +0200
commit46a7d9eb2d6b4d9d4b16ddb06c3e5757ee968df6 (patch)
tree7987cf389be7ae65ab03e5f36b98534ef77999fa
parent7b104826bfc84976a0b0c7b2c001ec4cff6fff9c (diff)
downloadcffi-46a7d9eb2d6b4d9d4b16ddb06c3e5757ee968df6.tar.gz
Windows tests start to pass with this hack.
-rw-r--r--cffi/vengine_gen.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cffi/vengine_gen.py b/cffi/vengine_gen.py
index 9ba858e..cda7170 100644
--- a/cffi/vengine_gen.py
+++ b/cffi/vengine_gen.py
@@ -33,6 +33,12 @@ class VGenericEngine(object):
# call generate_gen_xxx_decl(), for every xxx found from
# ffi._parser._declarations. This generates all the functions.
self._generate('decl')
+ #
+ # on Windows, distutils insists on putting init_cffi_xyz in
+ # 'export_symbols', so instead of fighting it, just give up and
+ # give it one
+ if sys.platform == 'win32':
+ prnt("void init%s(void) { }\n" % self.verifier.get_module_name())
def load_library(self):
# import it with the CFFI backend