From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28414 invoked by alias); 3 Sep 2009 10:55:33 -0000 Received: (qmail 28406 invoked by uid 22791); 3 Sep 2009 10:55:33 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_92,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f174.google.com (HELO mail-vw0-f174.google.com) (209.85.212.174) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Sep 2009 10:55:27 +0000 Received: by vws4 with SMTP id 4so1415618vws.0 for ; Thu, 03 Sep 2009 03:55:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.111.80 with SMTP id r16mr6183440vcp.76.1251975325743; Thu, 03 Sep 2009 03:55:25 -0700 (PDT) In-Reply-To: <90baa01f0909021518w469a8991ga54bacf8f7df68f9@mail.gmail.com> References: <90baa01f0909021518w469a8991ga54bacf8f7df68f9@mail.gmail.com> Date: Thu, 03 Sep 2009 10:55:00 -0000 Message-ID: <84fc9c000909030355r6843e245j5f5290b021d4ec0e@mail.gmail.com> Subject: Re: [patch]: Add check for stdint header From: Richard Guenther To: Kai Tietz Cc: GCC Patches , Richard Henderson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00231.txt.bz2 On Thu, Sep 3, 2009 at 12:18 AM, Kai Tietz wrote: > Hello, > > this patch adds to gcc's system.h file the include of stdint.h file, > if present. If it doesn't finds this header it defines uintptr_t as > 'unsigned long' and intptr_t as 'long'. The toplevel already has support for creating a stdint comaptible header, you should probably simply use that. See config/stdint*.m4. Richard. > ChangeLog > > 2009-09-03 =A0Kai Tietz =A0 > > =A0 =A0 =A0 =A0* config.in (HAVE_STDINT_H): New. > =A0 =A0 =A0 =A0* configure.ac (AC_CHECK_HEADERS): Add stdint.h. > =A0 =A0 =A0 =A0* configure: Regenerated. > =A0 =A0 =A0 =A0* system.h: Include stdint.h, if present. Or define default > =A0 =A0 =A0 =A0versions of uintptr_t and intptr_t with long type. > > Tested for x86_64-pc-linux, i686-w64-mingw32, and for > x86_64-w64-mingw32. Ok for apply to trunk? > > Cheers, > Kai > > -- > | =A0(\_/) This is Bunny. Copy and paste > | (=3D'.'=3D) Bunny into your signature to help > | (")_(") him gain world domination >