From 0c2a5dfaf47e1a2855ff430979fdcde00e5a7103 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 22 Apr 2010 13:54:44 +0000 Subject: [PATCH] On Win32 and Win64, define 32-bit C99 types as ints instead of longs, because a lot of software (wrongly) assumes that int32_t is the same as int. --- caca/caca_types.h.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/caca/caca_types.h.in b/caca/caca_types.h.in index be0379a..11d34ab 100644 --- a/caca/caca_types.h.in +++ b/caca/caca_types.h.in @@ -38,12 +38,12 @@ typedef signed char int8_t; typedef signed short int16_t; -typedef signed long int int32_t; +typedef signed int int32_t; typedef signed long long int int64_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; -typedef unsigned long int uint32_t; +typedef unsigned int uint32_t; typedef unsigned long long int uint64_t; typedef int ssize_t; @@ -55,12 +55,12 @@ typedef unsigned int size_t; typedef signed char int8_t; typedef signed short int16_t; -typedef signed long int int32_t; +typedef signed int int32_t; typedef signed long long int int64_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; -typedef unsigned long int uint32_t; +typedef unsigned int uint32_t; typedef unsigned long long int uint64_t; typedef int ssize_t;