From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Portability bug with UINTPTR_MAX in Solaris/Forte Date: Sat, 21 Jun 2003 11:20:16 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87isr0cjlb.fsf@zip.com.au> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1056158940 13391 80.91.224.249 (21 Jun 2003 01:29:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 21 Jun 2003 01:29:00 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jun 21 03:23:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19TX4G-000386-00 for ; Sat, 21 Jun 2003 03:21:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TX3t-000791-43 for guile-devel@m.gmane.org; Fri, 20 Jun 2003 21:21:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19TX3T-00073x-Lo for guile-devel@gnu.org; Fri, 20 Jun 2003 21:20:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19TX3R-00072a-1B for guile-devel@gnu.org; Fri, 20 Jun 2003 21:20:33 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19TX3P-0006xj-Tm for guile-devel@gnu.org; Fri, 20 Jun 2003 21:20:32 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h5L1KSYd019453; Sat, 21 Jun 2003 11:20:29 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h5L1KSQg018018; Sat, 21 Jun 2003 11:20:28 +1000 (EST) Original-Received: from localhost (ppp78.dyn228.pacific.net.au [203.143.228.78]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h5L1KPnh009615; Sat, 21 Jun 2003 11:20:26 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19TX3B-0006He-00; Sat, 21 Jun 2003 11:20:17 +1000 Original-To: Matthias Koeppe Mail-Copies-To: never In-Reply-To: (Matthias Koeppe's message of "Wed, 18 Jun 2003 08:25:47 +0200") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2566 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2566 --=-=-= Matthias Koeppe writes: > > On Solaris, there is a uintptr_t, and UINTPTR_MAX is also a defined > macro, but it expands to nothing. Literally nothing? Perhaps the change below would do the trick. Does the same apply to INTPTR_MAX? --=-=-= Content-Disposition: attachment; filename=tags.h.solaris-uintptr.diff --- tags.h.~1.103.~ 2003-06-12 10:58:55.000000000 +1000 +++ tags.h 2003-06-21 11:19:56.000000000 +1000 @@ -49,7 +49,9 @@ #define SCM_T_SIGNED_BITS_MIN LONG_MIN #endif -#if SCM_SIZEOF_UINTPTR_T != 0 && defined(UINTPTR_MAX) +/* On solaris 7 and 8, Sun workshop cc has UINTPTR_MAX defined to empty. To + avoid uintptr_t in this case we require UINTPTR_MAX-0 != 0. */ +#if SCM_SIZEOF_UINTPTR_T != 0 && defined(UINTPTR_MAX) && UINTPTR_MAX-0 != 0 typedef uintptr_t scm_t_bits; #define SIZEOF_SCM_T_BITS SCM_SIZEOF_UINTPTR_T #define SCM_T_BITS_MAX UINTPTR_MAX --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --=-=-=--