Here's a new patch should be less invasive than the last one. The new approach is as follows: - Introduced an ECB_REAL_GCC macro which tells us whether the GCC is the real one or another implementation just claiming to be GCC. llvm-gcc is not considered to be real. - Introduced an ECB_APPLE_LLVM_GCC macro which tells us whether this is Apple's llvm-gcc as shipped with OS X. - Introduced an ECB_ADVERTISED_GCC_VERSION macro which is like ECB_GCC_VERSION, but does not blacklist non-real GCC compilers. - Various features such as __inline__ and __attribute__ support are explicitly whitelisted, e.g. like this: ECB_APPLE_LLVM_GCC && ECB_ADVERTISED_GCC_VERSION(3,1) - The entire memory barrier section has been moved to the bottom so that I can mark ecb_mf_lock with ecb_unused.
-- Phusion | Ruby & Rails deployment, scaling and tuning solutions Web: http://www.phusion.nl/ E-mail: i...@phusion.nl Chamber of commerce no: 08173483 (The Netherlands)
0001-Fix-ecb.h-compatibility-with-llvm-gcc-4.2.1-on-OS-X-.patch
Description: Binary data
_______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev