diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 12:53:16 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-13 12:53:16 +0000 |
commit | 1bba09cc68b4f5335ecd335a4e52b74f221ef583 (patch) | |
tree | d3d7cbe9c9cfada1a901023b4c50245f559e5fe4 /base/file_path.h | |
parent | f3964daf023b2d10df1111248de367a0647d6392 (diff) | |
download | chromium_src-1bba09cc68b4f5335ecd335a4e52b74f221ef583.zip chromium_src-1bba09cc68b4f5335ecd335a4e52b74f221ef583.tar.gz chromium_src-1bba09cc68b4f5335ecd335a4e52b74f221ef583.tar.bz2 |
Disable RTTI and C++ exceptions in the Mac build. Disable RTTI in the Linux
build, where C++ exceptions are already disabled.
BUG=19094 12248
TEST=Mac release-mode Google Chrome.app should shrink by about 6MB.
Mac disk image should shrink by about 1.5MB.
Linux binary and package should shrink too.
Review URL: http://codereview.chromium.org/165330
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.h')
-rw-r--r-- | base/file_path.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/base/file_path.h b/base/file_path.h index 3d19c01..6bd2216 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -66,6 +66,7 @@ #define BASE_FILE_PATH_H_ #include <string> +#include <vector> #include "base/basictypes.h" #include "base/compiler_specific.h" @@ -257,14 +258,15 @@ class FilePath { #define FILE_PATH_LITERAL(x) L ## x #endif // OS_WIN -// Implement hash function so that we can use FilePaths in hashsets and maps. +// Provide a hash function so that hash_sets and maps can contain FilePath +// objects. #if defined(COMPILER_GCC) namespace __gnu_cxx { template<> struct hash<FilePath> { - size_t operator()(const FilePath& f) const { - return std::tr1::hash<FilePath::StringType>()(f.value()); + std::size_t operator()(const FilePath& f) const { + return hash<FilePath::StringType>()(f.value()); } }; |