Commit c065026e authored by Robert Bradshaw's avatar Robert Bradshaw

More explicit warning when C++ compiler not used for C++ Cython file.

Now that we split CInitCode and CppInitCode, we no longer generate
valid C code even if C++ features are not used.
parent 45655dae
......@@ -234,6 +234,10 @@ typedef struct {
/////////////// CppInitCode ///////////////
#ifndef __cplusplus
#error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
// inline attribute
#ifndef CYTHON_INLINE
#define CYTHON_INLINE inline
......
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