[cfe-dev] clang doesn't compile simple code

Reid Kleckner rnk at google.com
Tue Apr 22 11:14:20 PDT 2014


Yep, that's what r206791 does. If you update and rebuild you should see it.


On Tue, Apr 22, 2014 at 12:03 AM, fprijate <prijatelj.francek at gmail.com>wrote:

> Hi
>
> I solved the problem.
> IMHO the simplest dirty way.
> I just added
>
> CFLAGS+=-D_cdecl=__attribute__((__cdecl__))
> -D_stdcall=__attribute__((__stdcall__))
>
> to my make file and everything compiles fine.
>
> When I inspect clang macro definitions with clang -dD -E ...,
> I see that there is allready :
>
> #define __declspec(a) __attribute__((a))
>
> Why not others?  :
>
> #define _cdecl __attribute__((__cdecl__))
> #define __cdecl __attribute__((__cdecl__))
> #define _stdcall __attribute__((__stdcall__))
> .....
>
>
> regards
> FranĨek
>
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/clang-doesn-t-compile-simple-code-tp4038903p4038946.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140422/77ad331c/attachment.html>


More information about the cfe-dev mailing list