eobish

diff src/dos/inttypes.h @ 7:6a350c554e46

started DOS port
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 15:49:14 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/dos/inttypes.h	Mon Jan 19 15:49:14 2015 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +#ifndef INT_TYPES_H_
     1.5 +#define INT_TYPES_H_
     1.6 +
     1.7 +#if defined(__DOS__) || defined(WIN32)
     1.8 +typedef char int8_t;
     1.9 +typedef short int16_t;
    1.10 +typedef long int32_t;
    1.11 +
    1.12 +typedef unsigned char uint8_t;
    1.13 +typedef unsigned short uint16_t;
    1.14 +typedef unsigned long uint32_t;
    1.15 +
    1.16 +typedef unsigned long intptr_t;
    1.17 +#else
    1.18 +#include <stdint.h>
    1.19 +#endif
    1.20 +
    1.21 +#endif	/* INT_TYPES_H_ */