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 :content-transfer-encoding; q=dns; s=default; b=Kk6I0glftQDWP+dh VTeOI8nPfiX6at7z58RUlbOtiEP+63XvUC5Vpd5TM6VXsMrymvNG6mbn622lr3Jm vf9U/fFGFzPJ5/vS+jOX6VPJ4HrwYbUX+EyxsJYD6Oc0iL8ylWC/kQxqk4sS8mSa 6j4LdKciD0FAw5XZQ/c0fvtnevA= 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 :content-transfer-encoding; s=default; bh=/iiBBB7DCOJGGxSAmipYQE xGfZU=; b=VjXyt9Z3r44XhK5K/zhRAHL/gUP3nprv+Rr6sVCr2rNiPBSD+w+Fb0 +Sj/YdpeQiVc2Mr3+6Rq8rxSiQMdWoKsgsQ87fLJIv4OP96s4C8gZcGPpTj/EE6b s/mWzwhbMdr2XzTlGAI5J8YjRm1FTNd52LrRx9wgcOeUEEZff817I= 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=-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 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) Subject: Re: ushort definition To: cygwin AT cygwin DOT com References: <9d119899-88ca-c530-c1b4-1a5613dc6daa AT gmail DOT com> <20170109165932 DOT GA26337 AT calimero DOT vinschen DOT de> <0446748b-9e3d-a3bc-1c2f-e5e556f735c2 AT gmail DOT com> <6c9cefe8-b25a-9f63-c3a4-5eaf5ad0ad0f AT t-online DOT de> <20b0921a-0c66-9429-7c88-41d312041feb AT gmail DOT com> <5920d91e-43c4-f57b-3711-e423879c6896 AT t-online DOT de> From: Marco Atzeri Message-ID: Date: Tue, 10 Jan 2017 00:05:36 +0100 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 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