summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-11-28 12:59:40 -0800
committerAlex Ray <aray@google.com>2013-07-30 13:57:00 -0700
commitb3176acd5fa7a35cee7b6722cd5869f13542afdd (patch)
tree7cf7f4bf816b6d291e4d28b747adab31c6c1be53
parent45ad8f44d0cb60b6c930a4afd1ecd05e9501d381 (diff)
downloadsystem_core-b3176acd5fa7a35cee7b6722cd5869f13542afdd.zip
system_core-b3176acd5fa7a35cee7b6722cd5869f13542afdd.tar.gz
system_core-b3176acd5fa7a35cee7b6722cd5869f13542afdd.tar.bz2
Add #ifndef to prevent multiple definitions
Change-Id: Ib861eee0f333fe29290437b7e67623622d8dabd0
-rw-r--r--include/utils/LruCache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils/LruCache.h b/include/utils/LruCache.h
index af39315..2a70d76 100644
--- a/include/utils/LruCache.h
+++ b/include/utils/LruCache.h
@@ -14,6 +14,9 @@
* limitations under the License.
*/
+#ifndef ANDROID_UTILS_LRU_CACHE_H
+#define ANDROID_UTILS_LRU_CACHE_H
+
#include <utils/BasicHashtable.h>
#include <utils/GenerationCache.h>
#include <utils/UniquePtr.h>
@@ -197,3 +200,5 @@ void LruCache<TKey, TValue>::rehash(size_t newCapacity) {
}
}
+
+#endif // ANDROID_UTILS_LRU_CACHE_H