Minor fix for MIPS Android build.

BUG=
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/47729004

Patch from Ljubomir Papuga <lpapuga@mips.com>.

Cr-Commit-Position: refs/heads/master@{#8813}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8813 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org 2015-03-20 22:55:14 +00:00
parent 4ddc9387bd
commit 3200a64b3c

View File

@ -44,6 +44,12 @@ inline void MemoryBarrier() {
__asm__ __volatile__("mfence" : : : "memory");
}
#elif defined(__MIPSEL__)
// From http://src.chromium.org/viewvc/chrome/trunk/src/base/atomicops_internals_mips_gcc.h
inline void MemoryBarrier() {
__asm__ __volatile__("sync" : : : "memory");
}
#else
#error Add an implementation of MemoryBarrier() for this platform!
#endif