diff options
| author | Carl Shapiro <cshapiro@google.com> | 2010-10-11 14:55:08 -0700 |
|---|---|---|
| committer | Carl Shapiro <cshapiro@google.com> | 2010-10-11 14:55:08 -0700 |
| commit | 44dcf29d18f819b4b9d78d4d81676681b57f44ce (patch) | |
| tree | f33430a81028a0ee68f0cc42a63513162320b25e | |
| parent | 0b89c266321d6db8c50485e3b65d7def799ae0a3 (diff) | |
| download | android_dalvik-44dcf29d18f819b4b9d78d4d81676681b57f44ce.tar.gz android_dalvik-44dcf29d18f819b4b9d78d4d81676681b57f44ce.tar.bz2 android_dalvik-44dcf29d18f819b4b9d78d4d81676681b57f44ce.zip | |
Add include guards to avoid multiple definitions.
Change-Id: I2a52823325a0a582a746890af7f040324d671806
| -rw-r--r-- | vm/alloc/WriteBarrier.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vm/alloc/WriteBarrier.h b/vm/alloc/WriteBarrier.h index 34b3b196c..dd8f129c0 100644 --- a/vm/alloc/WriteBarrier.h +++ b/vm/alloc/WriteBarrier.h @@ -14,6 +14,9 @@ * limitations under the License. */ +#ifndef _DALVIK_ALLOC_WRITEBARRIER +#define _DALVIK_ALLOC_WRITEBARRIER + /* * Note writes to the heap. These functions must be called if a field * of an Object in the heap changes, and before any GC safe-point. The @@ -46,3 +49,5 @@ INLINE void dvmWriteBarrierArray(const ArrayObject *obj, { dvmMarkCard((Object *)obj); } + +#endif /* _DALVIK_ALLOC_WRITEBARRIER */ |
