osxcross/wrapper/compat.h
Thomas Pöchtrager f8e57bfcd3 new compiler wrapper written in C++
to highlight some changes:

- this gets rid of the bash dependency (after installing)
- osxcross-env, osxcross-conf and (the fake) dsymutil are now implemented
  in the wrapper
- added: 'sw_vers' tool, which is required by some projects (llvm, ...)
- added '-oc-use-gcc-libs' option (uses './build_gcc.sh' libstdc++)

This new wrapper is also more restrict and several times faster than the bash
implementation (~0.2ms vs. 10ms+).
2014-04-06 22:27:59 +02:00

16 lines
248 B
C

#ifdef __clang__
#if __has_include(<__config>)
#include <__config>
#endif
#ifndef _LIBCPP_CONFIG
// NetBSD's libstdc++ 4.5.3
// requires this
#undef __GXX_EXPERIMENTAL_CXX0X__
#endif
#endif
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif