fixed odd read('*a') behaviour in Windows (A. Kakuto)
[luatex.git] / source / libs / mpfr / mpfr-3.1.2-PATCHES / patch-01-TL
blob95e79f73af811179ac07f5aadfb02dc453609c5d
1 diff -ur mpfr-3.1.2.orig/src/mparam_h.in mpfr-3.1.2/src/mparam_h.in
2 --- mpfr-3.1.2.orig/src/mparam_h.in     2013-03-13 16:37:32.000000000 +0100
3 +++ mpfr-3.1.2/src/mparam_h.in  2014-05-23 10:42:18.499864511 +0200
4 @@ -27,7 +27,9 @@
5     for example with gcc -dM -E -xc /dev/null
6     As of gcc 4.2, you can also use: -march=native or -mtune=native */
7  
8 -#if defined (__tune_pentium4__) /* Threshold for Pentium 4 */
9 +#if 1 /* no processor specific optimization for TeX Live */
10 +#define MPFR_TUNE_CASE "default"
11 +#elif defined (__tune_pentium4__) /* Threshold for Pentium 4 */
12  #define MPFR_TUNE_CASE "src/x86_64/pentium4/mparam.h"
13  #include "x86_64/pentium4/mparam.h"
15 diff -ur mpfr-3.1.2.orig/src/mpfr-impl.h mpfr-3.1.2/src/mpfr-impl.h
16 --- mpfr-3.1.2.orig/src/mpfr-impl.h     2013-03-13 16:37:36.000000000 +0100
17 +++ mpfr-3.1.2/src/mpfr-impl.h  2014-05-23 10:45:48.000000000 +0200
18 @@ -23,6 +23,11 @@
19  #ifndef __MPFR_IMPL_H__
20  #define __MPFR_IMPL_H__
22 +/* Include MPFR 'config.h' before ANY system headers */
23 +#ifdef HAVE_CONFIG_H
24 +# include <config.h>
25 +#endif
27  /* Let's include some standard headers unconditionally as they are
28     already needed by several source files or when some options are
29     enabled/disabled, and it is easy to forget them (some configure
30 @@ -56,12 +61,6 @@
31   ****************** Include files *********************
32   ******************************************************/
34 -/* Include 'config.h' before using ANY configure macros if needed
35 -   NOTE: It isn't MPFR 'config.h', but GMP's one! */
36 -#ifdef HAVE_CONFIG_H
37 -# include "config.h"
38 -#endif
40  #ifdef  MPFR_HAVE_GMP_IMPL /* Build with gmp internals*/
42  # ifndef __GMP_H__