From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111951 invoked by alias); 22 Dec 2016 20:14:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111939 invoked by uid 89); 22 Dec 2016 20:14:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=blake, Blake, autoconf, Hx-languages-length:822 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Dec 2016 20:14:46 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BE3D1C04B92B for ; Thu, 22 Dec 2016 20:14:45 +0000 (UTC) Received: from [10.10.117.58] (ovpn-117-58.rdu2.redhat.com [10.10.117.58]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uBMKEjF2031557 for ; Thu, 22 Dec 2016 15:14:45 -0500 Subject: Re: ssize_t To: cygwin@cygwin.com References: From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <3cd8f4f9-2d22-6018-9f84-6a1312042997@redhat.com> Date: Thu, 22 Dec 2016 20:14:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="vRXIEKXpFv2cC1M5raEgoKsX5AvGvx5P6" X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00251.txt.bz2 --vRXIEKXpFv2cC1M5raEgoKsX5AvGvx5P6 Content-Type: multipart/mixed; boundary="sBbBQv7SfmiuMbNOIDj7J5kFRniTxLgh7"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: <3cd8f4f9-2d22-6018-9f84-6a1312042997@redhat.com> Subject: Re: ssize_t References: In-Reply-To: --sBbBQv7SfmiuMbNOIDj7J5kFRniTxLgh7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 879 On 12/22/2016 01:39 PM, Marco Atzeri wrote: > Hi guys, >=20 > building latest Imagemagick, the test for ssize_t is now failing with a > puzzling >=20 > $ gcc ssize_t.c -o ssize_t > ssize_t.c: In function =E2=80=98main=E2=80=99: > ssize_t.c:115:22: error: expected expression before =E2=80=98)=E2=80=99 t= oken > if (sizeof ((ssize_t))) > ^ >=20 > any clue what to look for ? That's probably SUPPOSED to happen. Autoconf tests for type names by comparing: sizeof(TYPE) /* should compile */ with sizeof((TYPE)) /* should not compile */ If 'TYPE' is instead a constant, then both forms will compile. So it allows you to probe whether an unknown string (in this case 'ssize_t') is a type name or some other macro that expands into a constant. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --sBbBQv7SfmiuMbNOIDj7J5kFRniTxLgh7-- --vRXIEKXpFv2cC1M5raEgoKsX5AvGvx5P6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYXDQ0AAoJEKeha0olJ0Nq77gIAJ2iadMwnAoFJ0YEQbKh2MGn VGmeA1qbSmey9sKdXI7zyFb+mFFyZY7AbREwYFLIfZ6TX2M3O5KRtolhfSGvxLPJ hgDdnsjX5jiF3PIhWCxwxvD5SGWARSPI+bDZWrWuqvs/OUV76uRtV8+TeMOdOv3T Z6PfXRjA+o8k0zJ5r2n4ElhAxjbca1B/nmYbh1T3hHoVi3ii0YW8lOo4y4MwqMVy u4/5T9dfHsNvsksXQ7FEi8chmKYdqEFaGidYW4zloyK4ic8rYFW8nImcvoNqszHn dwvUyPwW9e1GN6TuK9tZeatgGd23D5t5SxCYlFsZX1ZWULb3qi7KzY2Z+u/UTOI= =ohEL -----END PGP SIGNATURE----- --vRXIEKXpFv2cC1M5raEgoKsX5AvGvx5P6--