OSDN Git Service

Don't redefine B_PACK_CHARS
authorCasey Dahlin <sadmac@google.com>
Tue, 15 Dec 2015 00:09:06 +0000 (16:09 -0800)
committerCasey Dahlin <sadmac@google.com>
Tue, 15 Dec 2015 00:59:28 +0000 (16:59 -0800)
Change-Id: I5dfaca405f0f866e697d5ae546ead8a8eb6de7ca
Test: make checkbuild succeeds
Bug: 25868260
Signed-off-by: Casey Dahlin <sadmac@google.com>
include/binder/IBinder.h

index 43b6543..d98d4c5 100644 (file)
 #include <utils/Vector.h>
 
 
+// linux/binder.h already defines this, but we can't just include it from there
+// because there are host builds that include this file.
+#ifndef B_PACK_CHARS
 #define B_PACK_CHARS(c1, c2, c3, c4) \
     ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4))
+#endif  // B_PACK_CHARS
 
 // ---------------------------------------------------------------------------
 namespace android {