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:
parent
4ddc9387bd
commit
3200a64b3c
@ -44,6 +44,12 @@ inline void MemoryBarrier() {
|
|||||||
__asm__ __volatile__("mfence" : : : "memory");
|
__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
|
#else
|
||||||
#error Add an implementation of MemoryBarrier() for this platform!
|
#error Add an implementation of MemoryBarrier() for this platform!
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user