Debian Codegraph @

utils/pmx/pmx-src/libf2c/patch-04-MSVC-complex

raw
1 _COMPLEX_DEFINED should be defined for MSVC, otherwise
2 complex is redefined inconsistently in <math.h>.
3
4 Mail from Akira, 31 Mar 2012 21:36:26.
5
6 diff -ur pmx-2.6.18.orig/libf2c/f2c.h pmx-2.6.18/libf2c/f2c.h
7 --- pmx-2.6.18.orig/libf2c/f2c.h 2012-04-09 18:24:12.000000000 +0200
8 +++ pmx-2.6.18/libf2c/f2c.h 2012-05-19 18:49:12.286432193 +0200
9 @@ -13,6 +13,9 @@
10 typedef short int shortint;
11 typedef float real;
12 typedef double doublereal;
13 +#ifdef WIN32
14 +#define _COMPLEX_DEFINED 1
15 +#endif
16 typedef struct { real r, i; } complex;
17 typedef struct { doublereal r, i; } doublecomplex;
18 typedef long int logical;