X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=qsVY 3Y7aHKvT8kczxlc8DTAbqrinJq5Lkri6ug+d/f1EZTymFu05QrxWNwnGNgDaILte oppuZ8u6zNc63S/KlmxwgY964mEG4/LaWZiKZbxafVns7YjeskJPV9CeAwyMmj6W Z8nHCaj2T1TGLb7Ab7m45XW/4wqkrpdvdLzbfVw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=+igGk/ZelM ndX+P6WDdtXOBQxIc=; b=cuXDzYA5FnSPz/BIy/BIkUQrxDq8KG7M0l2l7w7mAZ RG+XSeEg4JgxZf3H0NbwP+ZEpypLUuSYMEygaNhXnGXkC+UptR5tzBjyVzb/qtMm VidISiTWqdVZl4hkc71BxY1njBkoQUurIAY5zBQP19pA/j8WWBRCrMsnRDc9laEx E= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Subject: Re: ssize_t To: cygwin AT cygwin DOT 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 14:14:44 -0600 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 --vRXIEKXpFv2cC1M5raEgoKsX5AvGvx5P6 Content-Type: multipart/mixed; boundary="sBbBQv7SfmiuMbNOIDj7J5kFRniTxLgh7"; protected-headers="v1" From: Eric Blake To: cygwin AT cygwin DOT com Message-ID: <3cd8f4f9-2d22-6018-9f84-6a1312042997 AT redhat DOT com> Subject: Re: ssize_t References: In-Reply-To: --sBbBQv7SfmiuMbNOIDj7J5kFRniTxLgh7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" -----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--