diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-22 12:09:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-02-22 12:09:38 +0000 |
commit | b287d7f6a13823ea17e0bd415981d3a5953ca703 (patch) | |
tree | a420b28a35f7761f064d50bb610dbb2b46c71486 /Build/source/texk/dvipng/dvipng-1.12-PATCHES/patch-07-always-undef | |
parent | 5fd6fd3479fcbbda52ebca7b5e80a5aaa1add69f (diff) |
build system: various small fixes for mingw32 cross compilation
still incomplete
git-svn-id: svn://tug.org/texlive/trunk@17141 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng/dvipng-1.12-PATCHES/patch-07-always-undef')
-rw-r--r-- | Build/source/texk/dvipng/dvipng-1.12-PATCHES/patch-07-always-undef | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Build/source/texk/dvipng/dvipng-1.12-PATCHES/patch-07-always-undef b/Build/source/texk/dvipng/dvipng-1.12-PATCHES/patch-07-always-undef new file mode 100644 index 00000000000..36721a7bc5c --- /dev/null +++ b/Build/source/texk/dvipng/dvipng-1.12-PATCHES/patch-07-always-undef @@ -0,0 +1,16 @@ + Always undefine min/max before redefining them (for MinGW32). + +diff -ur dvipng-1.12.orig/dvipng.h dvipng-1.12/dvipng.h +--- dvipng-1.12.orig/dvipng.h 2009-10-01 11:14:10.000000000 +0200 ++++ dvipng-1.12/dvipng.h 2010-02-20 18:20:53.496938715 +0100 +@@ -518,10 +518,8 @@ + #ifdef HAVE_GDIMAGEPNGEX + EXTERN int compression INIT(1); + #endif +-#ifdef MIKTEX + #undef min + #undef max +-#endif /* MIKTEX */ + # define max(x,y) if ((y)>(x)) x = y + # define min(x,y) if ((y)<(x)) x = y + |