delorie.com/archives/browse.cgi | search |
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: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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: | <deac8be3-fa7b-1716-0f2b-6974b183ba26 AT gmail DOT com> |
From: | Eric Blake <eblake AT redhat DOT com> |
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: | <deac8be3-fa7b-1716-0f2b-6974b183ba26@gmail.com> |
X-IsSubscribed: | yes |
--vRXIEKXpFv2cC1M5raEgoKsX5AvGvx5P6 Content-Type: multipart/mixed; boundary="sBbBQv7SfmiuMbNOIDj7J5kFRniTxLgh7"; protected-headers="v1" From: Eric Blake <eblake AT redhat DOT com> To: cygwin AT cygwin DOT com Message-ID: <3cd8f4f9-2d22-6018-9f84-6a1312042997 AT redhat DOT com> Subject: Re: ssize_t References: <deac8be3-fa7b-1716-0f2b-6974b183ba26 AT gmail DOT com> In-Reply-To: <deac8be3-fa7b-1716-0f2b-6974b183ba26 AT gmail DOT com> --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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |