From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31207 invoked by alias); 9 Jan 2017 23:05:50 -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 31198 invoked by uid 89); 9 Jan 2017 23:05:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*i:sk:5920d91, H*f:sk:5920d91, H*MI:sk:5920d91 X-HELO: mail-wm0-f45.google.com Received: from mail-wm0-f45.google.com (HELO mail-wm0-f45.google.com) (74.125.82.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Jan 2017 23:05:48 +0000 Received: by mail-wm0-f45.google.com with SMTP id n129so26761080wmn.0 for ; Mon, 09 Jan 2017 15:05:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=H7Wp4TTxe/SmdTCeCiBYsJ+eATDWBM9gwkeACkDi7Cg=; b=VFSsZTXzJKZkzA3/KrRBcCr5qWPkA4AW8LI0tldBCuaLEJHi8S4AhrkcDZ7OCiO0bY s0sF0vkXLnhroSNto4RjjVIFaWSZY6YHZR6zlLXByPGNiu1duyMIzGaS5GuoK+44itGZ HPxQGWn2HMRjnJbtklSmoQmNb0cIFxl69GIkqXPFoAqIn4ZEfPE6urnjdHnT7lgd0wip WlBR5QaFr7w+Llhg4r23nAQ/Q/VdUUiLy47g1p2eCIwkBL2JrXjlxOQDPbkigmKnHytJ xc1tnSI3/JPquHyhFp4Joj35upx+6h1dbVvlb5iD/+v5QtE5SVDmCELVN6/2LsQTMCK6 jMKg== X-Gm-Message-State: AIkVDXIbktrLoyQD4349PrfpJr6Rq9Bs95jb7K28nUX+YnDhasHu7/BaN0hKi8BAwzTeKQ== X-Received: by 10.223.172.168 with SMTP id o37mr18455wrc.21.1484003145939; Mon, 09 Jan 2017 15:05:45 -0800 (PST) Received: from [192.168.2.108] (p4FDB3EB2.dip0.t-ipconnect.de. [79.219.62.178]) by smtp.googlemail.com with ESMTPSA id i10sm126302781wjd.15.2017.01.09.15.05.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jan 2017 15:05:45 -0800 (PST) Subject: Re: ushort definition To: cygwin@cygwin.com References: <9d119899-88ca-c530-c1b4-1a5613dc6daa@gmail.com> <20170109165932.GA26337@calimero.vinschen.de> <0446748b-9e3d-a3bc-1c2f-e5e556f735c2@gmail.com> <6c9cefe8-b25a-9f63-c3a4-5eaf5ad0ad0f@t-online.de> <20b0921a-0c66-9429-7c88-41d312041feb@gmail.com> <5920d91e-43c4-f57b-3711-e423879c6896@t-online.de> From: Marco Atzeri Message-ID: Date: Mon, 09 Jan 2017 23:05:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <5920d91e-43c4-f57b-3711-e423879c6896@t-online.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00065.txt.bz2 On 09/01/2017 23:30, Hans-Bernhard Bröker wrote: > Am 09.01.2017 um 20:46 schrieb Marco Atzeri: >> On 09/01/2017 19:01, Hans-Bernhard Bröker wrote: > > >> the "#define ushort unsigned short" is in the >> /usr/include/jasper/jas_config.h >> >> It seems jasper configuration had not defined __MISC_VISIBLE, >> while gdal does. > > Neither is supposed to #define __MISC_VISIBLE itself. cscope finds: > > $ cscope -dL1 __MISC_VISIBLE > /usr/include/sys/features.h __MISC_VISIBLE 276 #define __MISC_VISIBLE 1 > /usr/include/sys/features.h __MISC_VISIBLE 278 #define __MISC_VISIBLE 0 > > So let's look at a bit of context: > > $ sed -n -e '270,280p' /usr/include/sys/features.h > #define __LARGEFILE_VISIBLE 1 > #else > #define __LARGEFILE_VISIBLE 0 > #endif > > #ifdef _DEFAULT_SOURCE > #define __MISC_VISIBLE 1 > #else > #define __MISC_VISIBLE 0 > #endif > > I.e. if jasper didn't have __MISC_VISIBLE on, it must have overridden > the default feature test state of _DEFAULT_SOURCE. I will bet on a "-std=C99" somewhere > The lesson to be had from all this: #defining types is just wrong. Don't > do it. typedef exists to be used. Thanks again Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple