~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to utils/pmx/pmx-2.6.17-PATCHES/patch-04-MSVC-complex

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-04-10 10:16:01 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20120410101601-7mt8nyn280xrgza6
Tags: 2011.20120410-1
* new upstream checkout:
  - remove decls of popen and pclose (Closes: #64524) (!yow, 5 digit bug!)
  - do not declare getopt in C++, fixes FTBFS with g++ >= 4.7 
    (Closes: #667392)
* add patches (maybe to be included upstream) that allows inclusion of
  one config file in another for (x)dvipdfmx. This will be
  used by the paper code.
* fix description of libptexenc-dev package (Closes: #667694)
* remove xdvik patch, included upstream
* remove conflict with ptex-bin, we are building a transitional package now
* build with internal t1lib, as t1lib is going to disappear in
  wheezy (Closes: #667912) (no, dropping xdvi is not an option!)
  (add a lintian override otherwise this gives a lintian error)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.17.orig/libf2c/f2c.h pmx-2.6.17/libf2c/f2c.h
 
7
--- pmx-2.6.17.orig/libf2c/f2c.h        2012-03-26 12:09:53.000000000 +0200
 
8
+++ pmx-2.6.17/libf2c/f2c.h     2012-04-01 14:50:19.000000000 +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;