File: patch-04-MSVC-complex

package info (click to toggle)
texlive-bin 2012.20120628-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 240,500 kB
  • sloc: ansic: 890,229; cpp: 469,960; perl: 73,550; sh: 47,106; makefile: 16,643; python: 8,657; lisp: 6,684; xml: 3,926; lex: 3,791; java: 3,569; pascal: 3,569; yacc: 2,460; exp: 2,031; ruby: 1,415; objc: 1,362; tcl: 631; sed: 522; asm: 435; csh: 46; awk: 30
file content (18 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
	_COMPLEX_DEFINED should be defined for MSVC, otherwise
	complex is redefined inconsistently in <math.h>.

	Mail from Akira, 31 Mar 2012 21:36:26.

diff -ur pmx-2.6.18.orig/libf2c/f2c.h pmx-2.6.18/libf2c/f2c.h
--- pmx-2.6.18.orig/libf2c/f2c.h	2012-04-09 18:24:12.000000000 +0200
+++ pmx-2.6.18/libf2c/f2c.h	2012-05-19 18:49:12.286432193 +0200
@@ -13,6 +13,9 @@
 typedef short int shortint;
 typedef float real;
 typedef double doublereal;
+#ifdef WIN32
+#define _COMPLEX_DEFINED 1
+#endif
 typedef struct { real r, i; } complex;
 typedef struct { doublereal r, i; } doublecomplex;
 typedef long int logical;