From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Richard Dawe" Newsgroups: gmane.emacs.bugs Subject: src/config.in: size_t and !HAVE_SIZE_T [PATCH] Date: Mon, 30 Dec 2002 11:05:32 +0000 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041246730 32260 80.91.224.249 (30 Dec 2002 11:12:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 30 Dec 2002 11:12:10 +0000 (UTC) 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 18Sxq4-0008OC-00 for ; Mon, 30 Dec 2002 12:12:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Sxqn-0001j6-04 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 30 Dec 2002 06:12:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Sxqh-0001hy-00 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2002 06:12:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Sxqd-0001Yk-00 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2002 06:12:45 -0500 Original-Received: from cmailm3.svr.pol.co.uk ([195.92.193.19]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Sxqc-0001TA-00 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2002 06:12:43 -0500 Original-Received: from modem-180.helium.dialup.pol.co.uk ([62.136.1.180] helo=phekda.freeserve.co.uk) by cmailm3.svr.pol.co.uk with esmtp (Exim 3.35 #1) id 18Sxqa-0000vI-00 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2002 11:12:41 +0000 Original-Received: from athena.int.phekda.freeserve.co.uk ([192.168.4.2] helo=athena) by phekda.freeserve.co.uk with smtp (Exim 3.22 #1) id 18Sxiu-0000Ni-00 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2002 11:04:44 +0000 Original-To: bug-gnu-emacs@gnu.org X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4113 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4113 Hello. I tried to build Emacs CVS against DJGPP CVS yesterday. The DJGPP build uses DJGPP's , which defines HAVE_* and other things that configure scripts detect. DJGPP's does not define HAVE_SIZE_T, so the definition of size_t is used from Emacs's src/config.in. Unfortunately there appears to be a typo in the definition. Below is a patch to fix the typo. One thing: why is it enclosed in #ifdef NOT_C_CODE/#endif? Is src/config.h used in non-C code? 2002-12-30 Richard Dawe * src/config.in (!HAVE_SIZE_T): Fix order of arguments in type definition of size_t. Regards, Rich =] Index: src/config.in =================================================================== RCS file: /cvsroot/emacs/emacs/src/config.in,v retrieving revision 1.178 diff -p -u -3 -r1.178 config.in --- src/config.in 29 Nov 2002 06:25:05 -0000 1.178 +++ src/config.in 30 Dec 2002 10:28:12 -0000 @@ -961,7 +961,7 @@ char *alloca (); # endif /* HAVE_ALLOCA_H */ #endif /* __GNUC__ */ #ifndef HAVE_SIZE_T -typedef size_t unsigned +typedef unsigned size_t; #endif #endif /* NOT_C_CODE */