Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/m4 Modified Files: ac_attribute.m4 Log Message: - OSX doesn't support nested functions so the __attribute__ test would always fail. This moves the functions out of main and OSX works correctly. =================================================================== RCS file: /cvs/e/e17/libs/ewl/m4/ac_attribute.m4,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- ac_attribute.m4 28 Mar 2005 07:04:26 -0000 1.1 +++ ac_attribute.m4 27 Oct 2006 03:28:46 -0000 1.2 @@ -3,8 +3,9 @@ [ AC_MSG_CHECKING(for __attribute__) AC_CACHE_VAL(ac_cv___attribute__, [ - AC_TRY_COMPILE([#include <stdlib.h>], - [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], + AC_TRY_COMPILE([#include <stdlib.h> + int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], + [], ac_cv___attribute__=yes, ac_cv___attribute__=no)]) if test "$ac_cv___attribute__" = "yes"; then AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__]) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs