delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/10/12:29:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <50EEFA40.5010506@alice.it>
Date: Thu, 10 Jan 2013 18:28:32 +0100
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: Clang and windows headers
References: <50EEEA49 DOT 1050507 AT alice DOT it>
In-Reply-To: <50EEEA49.1050507@alice.it>
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

Zeeman wrote:

> I have hit this too with log4cplus. This is my workaround:
>
> // Work around missing _X86_ symbol with Clang on Cygwin.
> #if ! defined (_X86_) && defined (__i386__)
> #  define _X86_ 1
> #endif
> #include <windows.h>

Yes, also

clang++ -D_X86_=1 -c foo.cxx -o foo.o

works...

Anyway, perhaps this is an issue with CLANG.. Indeed I notice that

$ echo | gcc -dD -E - | grep X86
#define _X86_ 1

$ echo | clang -dD -E - | grep X86
EMPTY

So gcc defines that symbol, clang not...

Ciao,
  Angelo.


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019