Changeset 4396 for libcaca


Ignore:
Timestamp:
Apr 22, 2010, 3:54:44 PM (9 years ago)
Author:
Sam Hocevar
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca_types.h.in

    r4369 r4396  
    3939typedef signed char int8_t;
    4040typedef signed short int16_t;
    41 typedef signed long int int32_t;
     41typedef signed int int32_t;
    4242typedef signed long long int int64_t;
    4343
    4444typedef unsigned char uint8_t;
    4545typedef unsigned short uint16_t;
    46 typedef unsigned long int uint32_t;
     46typedef unsigned int uint32_t;
    4747typedef unsigned long long int uint64_t;
    4848
     
    5656typedef signed char int8_t;
    5757typedef signed short int16_t;
    58 typedef signed long int int32_t;
     58typedef signed int int32_t;
    5959typedef signed long long int int64_t;
    6060
    6161typedef unsigned char uint8_t;
    6262typedef unsigned short uint16_t;
    63 typedef unsigned long int uint32_t;
     63typedef unsigned int uint32_t;
    6464typedef unsigned long long int uint64_t;
    6565
Note: See TracChangeset for help on using the changeset viewer.