Commit 4b90db36 authored by Stefan Behnel's avatar Stefan Behnel

Mark the embedded C main() function in the embedding test as "extern C" in C++...

Mark the embedded C main() function in the embedding test as "extern C" in C++ to see if that fixes the C++ builds in MSVC.
parent b278dfca
......@@ -3,6 +3,10 @@
/* This include file is automatically generated by Cython for 'public' functions. */
#include "embedded.h"
#ifdef __cplusplus
extern "C" {
#endif
int
main(int argc, char *argv[])
{
......@@ -59,3 +63,7 @@ exit_with_error:
Py_Finalize();
return 1;
}
#ifdef __cplusplus
}
#endif
......@@ -31,6 +31,3 @@ cpp_template_subclasses
# MSVC lacks "complex.h"
complex_numbers_cmath_T2891
# Embedding seems to have a non-trivial setup on Windows
embedded
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment