diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2012-11-06 14:47:29 +0000 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2012-11-06 15:00:15 +0000 |
commit | c94c4501fe83e3ad77ce597b55bbbfbf533c10ee (patch) | |
tree | c034cff3c8dbb6d096ef20c6d456e36f469a1ddd /util/util.h | |
parent | 2ee91b4af4353b9e6a9d591c32fedfc58fd4ef35 (diff) | |
download | regex-re2-c94c4501fe83e3ad77ce597b55bbbfbf533c10ee.tar.gz |
Add gnustl+rtti version of library
Previously, code linked against gnustl could not
use this library, due to conflicts with stlport used
here. I've added gnustl version, called libregex-re2-gnustl-rtti
Bug: 7484202
Change-Id: I951a8d85bb46eefb6da523806632107064b7f12c
Diffstat (limited to 'util/util.h')
-rw-r--r-- | util/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util/util.h b/util/util.h index 5948ef6..bf897ae 100644 --- a/util/util.h +++ b/util/util.h @@ -42,7 +42,12 @@ using std::make_pair; #if defined(ANDROID) -#include <unordered_set> +#if defined(_STLPORT_VERSION) +#include <unordered_set> // using stlport +#else +#include <tr1/unordered_set> // using gnustl +#endif + using std::tr1::unordered_set; #elif defined(__GNUC__) && !defined(USE_CXX0X) |