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

fprijate prijatelj.francek at gmail.com
Tue Apr 22 00:03:16 PDT 2014


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.




More information about the cfe-dev mailing list