diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-11-19 13:13:07 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-11-19 13:52:19 -0800 |
commit | 9ee93d18edb42d55441b636aa7e001260f1b758d (patch) | |
tree | 2ec012fa06311ad0e6b94c9161848be293a3a0fe /include/utils/Tokenizer.h | |
parent | a56323747e55d29f0119181d1f59aed23089445c (diff) | |
download | frameworks_native-9ee93d18edb42d55441b636aa7e001260f1b758d.zip frameworks_native-9ee93d18edb42d55441b636aa7e001260f1b758d.tar.gz frameworks_native-9ee93d18edb42d55441b636aa7e001260f1b758d.tar.bz2 |
Fix SDK build on Windows due to use of mmap.
Change-Id: Id4bd9a6f932285c93c5853e540efc20b99876564
Diffstat (limited to 'include/utils/Tokenizer.h')
-rw-r--r-- | include/utils/Tokenizer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/utils/Tokenizer.h b/include/utils/Tokenizer.h index bfe8923..21e58e6 100644 --- a/include/utils/Tokenizer.h +++ b/include/utils/Tokenizer.h @@ -19,6 +19,7 @@ #include <assert.h> #include <utils/Errors.h> +#include <utils/FileMap.h> #include <utils/String8.h> namespace android { @@ -27,7 +28,7 @@ namespace android { * A simple tokenizer for loading and parsing ASCII text files line by line. */ class Tokenizer { - Tokenizer(const String8& filename, const char* buffer, size_t length); + Tokenizer(const String8& filename, FileMap* fileMap, const char* buffer, size_t length); public: ~Tokenizer(); @@ -108,6 +109,7 @@ private: Tokenizer(const Tokenizer& other); // not copyable String8 mFilename; + FileMap* mFileMap; const char* mBuffer; size_t mLength; |