Browse Source

revert, remove typedef for _complex, which is used nowhere

pre-master-46
rlar 16 years ago
parent
commit
2de6345a5e
  1. 5
      ChangeLog
  2. 4
      src/include/complex.h

5
ChangeLog

@ -1,3 +1,8 @@
2010-10-09 Robert Larice
* src/include/complex.h :
!REVERT! remove typedef for _complex, which is used nowhere
this breaks MSVC, currently unkown why, FIXME
2010-10-09 Robert Larice 2010-10-09 Robert Larice
* src/frontend/parse-bison.c , * src/frontend/parse-bison.c ,
* src/frontend/parse-bison.h , * src/frontend/parse-bison.h ,

4
src/include/complex.h

@ -12,6 +12,10 @@ struct _complex1 { /* IBM portability... renamed due to double definition in M
double cx_imag; double cx_imag;
} ; } ;
#ifdef _MSC_VER
typedef struct _complex1 _complex;
#endif
typedef struct _complex1 complex; typedef struct _complex1 complex;
#define realpart(cval) ((struct _complex1 *) (cval))->cx_real #define realpart(cval) ((struct _complex1 *) (cval))->cx_real

Loading…
Cancel
Save