summaryrefslogtreecommitdiff
path: root/include/mcld/Script
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-04-30 18:05:51 -0700
committerStephen Hines <srhines@google.com>2014-04-30 18:07:57 -0700
commit8ff673e0a04af20135485dc422bcba264e4c0510 (patch)
treef217af75c747bbf124d8b585fd41e488e10b237c /include/mcld/Script
parent3f4df32acb9846eae0154b2cebb146f26068280c (diff)
downloadmclinker-8ff673e0a04af20135485dc422bcba264e4c0510.tar.gz
Provide size_t variant as a WAR for not using the same flex on Linux/Darwin.
Bug: 14446414 Change-Id: I508ab04db097855998b64d260cafe6189fc745cb
Diffstat (limited to 'include/mcld/Script')
-rw-r--r--include/mcld/Script/FlexLexer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mcld/Script/FlexLexer.h b/include/mcld/Script/FlexLexer.h
index f09ab20..1e49b83 100644
--- a/include/mcld/Script/FlexLexer.h
+++ b/include/mcld/Script/FlexLexer.h
@@ -141,6 +141,10 @@ public:
protected:
virtual int LexerInput( char* buf, int max_size );
virtual void LexerOutput( const char* buf, int size );
+ /* BEGIN ANDROID WAR - Mac builds use size_t until we switch to prebuilts */
+ virtual size_t LexerInput( char* buf, size_t max_size );
+ virtual void LexerOutput( const char* buf, size_t size );
+ /* END ANDROID WAR */
virtual void LexerError( const char* msg );
void yyunput( int c, char* buf_ptr );