Hi all,

I try to compile EFL on Mac OS 10.5 and I have some troubles.
Here the problem :

In file included from /usr/include/math.h:28,
                 from evas_soft16_polygon.c:3:
/usr/include/architecture/i386/math.h:172: error: syntax error before
'__attribute__'
/usr/include/architecture/i386/math.h:172: error: syntax error before
'inline'
/usr/include/architecture/i386/math.h:173: error: syntax error before
'__attribute__'
/usr/include/architecture/i386/math.h:173: error: syntax error before
'inline'
....
make[5]: *** [evas_soft16_polygon.lo] Error 1

If i look at /usr/include/math.h I see at line 67 :
#define __MATH_H_ALWAYS_INLINE__ __attribute__ ((always_inline))

and in src/lib/include/evas_common_soft16.h line 11
#ifndef always_inline
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >
0)
#    define always_inline __attribute__((always_inline)) inline
#else
#    define always_inline inline
#endif
#endif

I presume that math.h is include after evas_common_soft16.h and so macro
define in math.h become something like

#define __MATH_H_ALWAYS_INLINE__ __attribute__
((__attribute__((always_inline)) inline))

which cause my error.
If i remove math.h from evas_common_soft16.h compilation finish with warning
(ceil and some math function are undefined) but without errors
I don't know what we should do to correct this error, but i'm sure that some
of you will have good ideas :)

regards,
Nico
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to