<div dir="ltr">You could always use something like -U__GNUC_MINOR__ on the command line for each of the defines? It's a bit of a hack workaround, but...<div><br></div><div style>-eric</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Mar 1, 2013 at 1:47 PM, Jeffrey Walton <span dir="ltr"><<a href="mailto:noloader@gmail.com" target="_blank">noloader@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
I want to disable Clang defining __GNUC__ and friends. Its causing a<br>
few problems in a couple of projects I'm interested in. In addition,<br>
its causes problems in other's work (confer,<br>
<a href="https://svn.boost.org/trac/boost/ticket/7473" target="_blank">https://svn.boost.org/trac/boost/ticket/7473</a>).<br>
<br>
$ clang -dM -E -x c /dev/null | grep -i gnu<br>
#define __GNUC_MINOR__ 2<br>
#define __GNUC_PATCHLEVEL__ 1<br>
#define __GNUC_STDC_INLINE__ 1<br>
#define __GNUC__ 4<br>
#define __gnu_linux__ 1<br>
<br>
I've been through <a href="http://clang.llvm.org/docs/UsersManual.html" target="_blank">http://clang.llvm.org/docs/UsersManual.html</a>, and I<br>
don't see an option to request the behavior.<br>
<br>
Is there any way to instruct Clang to *not* define GNUC, GNUC_MINOR,<br>
and GNUC_PATCHLEVEL?<br>
<br>
Jeff<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>