This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Clang and windows headers
- From: Angelo Graziosi <angelo dot graziosi at alice dot it>
- To: Cygwin <cygwin at cygwin dot com>
- Date: Thu, 10 Jan 2013 18:28:32 +0100
- Subject: Re: Clang and windows headers
- References: <50EEEA49.1050507@alice.it>
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