Merge "Add compile option to parse ELF."

This commit is contained in:
Johann 2014-03-27 11:58:26 -07:00 committed by Gerrit Code Review
commit 143b09558c

View File

@ -34,6 +34,18 @@ int log_msg(const char *fmt, ...) {
}
#if defined(__GNUC__) && __GNUC__
#if defined(FORCE_PARSE_ELF)
#if defined(__MACH__)
#undef __MACH__
#endif
#if !defined(__ELF__)
#define __ELF__
#endif
#endif
#if defined(__MACH__)
#include <mach-o/loader.h>