Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: src/common/mac/include/features.h

Issue 1970903002: Fixes up dump_syms build on OS X so it works with ELF. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Change xcconfig instead of xcodeproj Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/common/mac/include/features.h
diff --git a/src/common/mac/include/features.h b/src/common/mac/include/features.h
new file mode 100644
index 0000000000000000000000000000000000000000..2020c482c427897562d6fc008a18d8d02968346d
--- /dev/null
+++ b/src/common/mac/include/features.h
@@ -0,0 +1,16 @@
+// This file is included by third_party/glibc/elf/elf.h
+// We use it to map a couple of glibc specific macros
+// over to their OS X equivalents.
+
+
+// Map GNU endianness macros over to OS X endianness macros.
+
+#ifndef __LITTLE_ENDIAN
+ #define __LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
+#endif
+#ifndef __BIG_ENDIAN
+ #define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
+#endif
+#ifndef __BYTE_ORDER
+ #define __BYTE_ORDER __BYTE_ORDER__
+#endif

Powered by Google App Engine
This is Rietveld 408576698