rpms/advancecomp/devel advancecomp-64bit.patch, NONE, 1.1 advancecomp.spec, 1.8, 1.9

Ralf Corsepius rc040203 at freenet.de
Fri May 27 05:41:34 UTC 2005


On Thu, 2005-05-26 at 11:12 -0400, Jeremy Katz wrote:

> --- advancecomp-1.14/7z/Portable.h.64bit	2005-05-26 11:02:30.000000000 -0400
> +++ advancecomp-1.14/7z/Portable.h	2005-05-26 10:50:22.000000000 -0400
> @@ -16,7 +16,11 @@
>  typedef UINT16 WORD;
>  typedef UINT32 DWORD;
>  
> -typedef unsigned UINT_PTR;
> +#if defined(__x86_64__) || defined(__s390x__) || defined(__ppc64__) || defined(__ia64__) || defined(__sparc64__) || defined(__alpha__)
> +typedef unsigned long UINT_PTR;
> +#else
> +typedef unsigned int UINT_PTR;
> +#endif
A much better approach would be to use c99/stdint.h types, instead.

i.e.

#include <stdint.h>

typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef uintptr_t UINT_PTR;

Ralf






More information about the fedora-extras-commits mailing list