Windows: fix testcase failing to link
authorLisandro Dalcin <dalcinl@gmail.com>
Wed, 9 Feb 2011 14:50:24 +0000 (11:50 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Wed, 9 Feb 2011 14:50:24 +0000 (11:50 -0300)
tests/compile/cnamespec.h [new file with mode: 0644]
tests/compile/cnamespec.pyx

diff --git a/tests/compile/cnamespec.h b/tests/compile/cnamespec.h
new file mode 100644 (file)
index 0000000..79b34fa
--- /dev/null
@@ -0,0 +1 @@
+int c_a, c_b;
index a627cffa16095296d5e968566f0b52969607c780..161045e85598b262ac5618b8b7498b5c19874e0b 100644 (file)
@@ -1,4 +1,5 @@
-cdef extern int a "c_a", b "c_b"
+cdef extern from "cnamespec.h":
+    int a "c_a", b "c_b"
 
 cdef struct foo "c_foo":
     int i "c_i"