From: David Given Date: Wed, 20 Jan 2016 22:25:39 +0000 (+0100) Subject: Don't use the 16-bit definitions if the compiler's provided 32-bit ones. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4bb888e624e86d913ba27200dcee2769f4b73ce9;p=FUZIX.git Don't use the 16-bit definitions if the compiler's provided 32-bit ones. --- diff --git a/Library/include/sys/types.h b/Library/include/sys/types.h index 1cdd1292..bae13731 100644 --- a/Library/include/sys/types.h +++ b/Library/include/sys/types.h @@ -28,12 +28,12 @@ typedef unsigned char uchar; typedef unsigned int uint; #endif -#ifndef __SIZE_T_DEFINED +#if !defined(__SIZE_T_DEFINED) && !defined(_SIZE_T_DEFINED) #define __SIZE_T_DEFINED typedef uint16_t size_t; #endif -#ifndef __SSIZE_T_DEFINED +#if !defined(__SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED) #define __SSIZE_T_DEFINED typedef int16_t ssize_t; #endif