guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenBSD does not define INT8_MIN etc.


From: Andreas Vögele
Subject: Re: OpenBSD does not define INT8_MIN etc.
Date: Sat, 10 Jul 2004 14:32:44 +0200

Am 10.07.2004 um 10:47 schrieb Andreas Vögele:

OpenBSD 3.5 doesn't define INT8_MIN, INT8_MAX, UINT8_MAX etc.

Here's a patch for gen-scmconfig.c. The patch replaces code like

#define SCM_T_INT8_MIN INT8_MIN

with

#ifdef INT8_MIN
#define SCM_T_INT8_MIN INT8_MIN
#else
#define SCM_T_INT8_MIN ((scm_t_int8)(-128))
#endif

It's based on information I gathered from the POSIX standard (see <http://www.opengroup.org/onlinepubs/009695399/basedefs/ stdint.h.html#tag_13_48_03_02>) and ICU's umachine.h (see <http://oss.software.ibm.com/cvs/icu/icu/source/common/unicode/ umachine.h?rev=1.28&content-type=text/x-cvsweb-markup>).

Attachment: gen-scmconfig.c.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]