comparison src/pdflib_lite-1-mingw.patch @ 972:e5d55b815b89

improved naming of patch files
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 14 May 2010 19:59:46 +0200
parents
children f653602a0500
comparison
equal deleted inserted replaced
971:d22c7eaea312 972:e5d55b815b89
1 This file is part of mingw-cross-env.
2 See doc/index.html for further information.
3
4 This patch has been taken from:
5 http://tech.groups.yahoo.com/group/pdflib/message/20472
6
7 diff -urN a/libs/pdcore/pc_util.c b/libs/pdcore/pc_util.c
8 --- a/libs/pdcore/pc_util.c 2010-04-29 15:50:05.000000000 +0200
9 +++ b/libs/pdcore/pc_util.c 2010-05-11 23:59:03.915954995 +0200
10 @@ -30,8 +30,12 @@
11 #include <ieeefp.h> /* for finite */
12 #endif
13
14 -#if defined (isfinite)
15 +#if defined(isfinite)
16 #define PDC_ISFINITE isfinite
17 +#if defined(__MINGW32__)
18 +/* MinGW has infinite, but we still need DWORD */
19 +#include <windef.h>
20 +#endif
21 #else /* isfinite */
22
23 #if defined(WIN32)