packages/libs/protobuf/patches/001-mipseb-compile.patch
Etienne CHAMPETIER 92fc1687c1 protobuf: make it compile with __MIPSEB__ (ar71xx)
it's only compile tested

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
2014-07-01 18:36:53 +02:00

11 lines
398 B
Diff

--- a/src/google/protobuf/stubs/platform_macros.h
+++ b/src/google/protobuf/stubs/platform_macros.h
@@ -49,7 +49,7 @@
#elif defined(__ARMEL__)
#define GOOGLE_PROTOBUF_ARCH_ARM 1
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
-#elif defined(__MIPSEL__)
+#elif defined(__MIPSEL__) || defined(__MIPSEB__)
#define GOOGLE_PROTOBUF_ARCH_MIPS 1
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#elif defined(__pnacl__)