From ed42707d8df16e914f16c8a93704b477cbdcd01a Mon Sep 17 00:00:00 2001 From: deskull Date: Tue, 12 Jun 2012 12:52:30 +0000 Subject: [PATCH] =?utf8?q?=E5=85=88=E3=81=AE=E3=82=B3=E3=83=9F=E3=83=83?= =?utf8?q?=E3=83=88=E3=81=A0=E3=81=A8C99=E3=81=AB=E5=AE=8C=E5=85=A8?= =?utf8?q?=E5=AF=BE=E5=BF=9C=E3=81=97=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84?= =?utf8?q?=E3=82=B3=E3=83=B3=E3=83=91=E3=82=A4=E3=83=A9=E3=81=8C=E5=AF=BE?= =?utf8?q?=E5=BF=9C=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=81=AE=E3=81=A7?= =?utf8?q?=E3=80=81=E3=83=97=E3=83=AA=E3=83=97=E3=83=AD=E3=82=BB=E3=83=83?= =?utf8?q?=E3=82=B5=E3=80=8CC99=E3=80=8D=E3=81=A7=E5=9B=B2=E3=81=A3?= =?utf8?q?=E3=81=A6=E4=BB=A5=E5=89=8D=E3=81=AEtypedef=E5=AE=A3=E8=A8=80?= =?utf8?q?=E3=82=82=E5=B7=AE=E3=81=97=E6=88=BB=E3=81=97=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/h-type.h | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/h-type.h b/src/h-type.h index 131981dc0..d4b8a7e6e 100644 --- a/src/h-type.h +++ b/src/h-type.h @@ -1,6 +1,8 @@ /* File: h-type.h */ +#ifdef C99 #include +#endif #ifndef INCLUDED_H_TYPE_H #define INCLUDED_H_TYPE_H @@ -115,12 +117,29 @@ typedef unsigned long huge; /* Signed/Unsigned 16 bit value */ +#ifdef C99 typedef int16_t s16b; typedef uint16_t u16b; +#else +typedef signed short s16b; +typedef unsigned short u16b; +#endif /* Signed/Unsigned 32 bit value */ -typedef int32_t s32b; -typedef uint32_t u32b; +#ifdef C99 + +#ifdef L64 /* 64 bit longs */ +typedef signed int s32b; +typedef unsigned int u32b; +#else +typedef signed long s32b; +typedef unsigned long u32b; +#endif + +#else +typedef signed long s32b; +typedef unsigned long u32b; +#endif -- 2.11.0