Commit 6e13d57e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

swig passes under C

parent 14985bbf
......@@ -47,6 +47,7 @@
#ifndef __CERF_H
# define __CERF_H
#ifndef SWIG
# ifdef CERF_AS_CPP
# include <complex>
typedef std::complex<double> _cerf_cmplx;
......@@ -54,6 +55,7 @@
# include <complex.h>
typedef double _Complex _cerf_cmplx;
# endif
#endif
# undef __BEGIN_DECLS
# undef __END_DECLS
......
%module "libcerf"
%include <std_complex.i>
%{
#include "lib/cerf.h"
%}
......
Supports Markdown
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