commit | ec8daae71004b3c2346bf12b2d74e52ed0815337 | [log] [tgz] |
---|---|---|
author | jfarrell <jfarrell@apache.org> | Wed Mar 19 09:50:10 2014 -0400 |
committer | jfarrell <jfarrell@apache.org> | Wed Mar 19 09:50:10 2014 -0400 |
tree | 70c87ace4ea6d6bfe5d5413100eb8e7d5c7a3e63 | |
parent | 16fcad0b25f1200db7ec0add08f827c76bf4dd43 [diff] [blame] |
THRIFT-2386: Thrift refuses to link yylex Client: compiler Patch: Milan Freml Fixes undefined reference to `yylex' due to upstream changes.
diff --git a/compiler/cpp/src/main.h b/compiler/cpp/src/main.h index f737e3f..9b0f3f3 100644 --- a/compiler/cpp/src/main.h +++ b/compiler/cpp/src/main.h
@@ -29,7 +29,9 @@ * Defined in the flex library */ -int yylex(void); +extern "C" { + int yylex(void); +} int yyparse(void);