Repository: thrift Updated Branches: refs/heads/master 16fcad0b2 -> ec8daae71
THRIFT-2386: Thrift refuses to link yylex Client: compiler Patch: Milan Freml Fixes undefined reference to `yylex' due to upstream changes. Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/ec8daae7 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/ec8daae7 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/ec8daae7 Branch: refs/heads/master Commit: ec8daae71004b3c2346bf12b2d74e52ed0815337 Parents: 16fcad0 Author: jfarrell <[email protected]> Authored: Wed Mar 19 09:50:10 2014 -0400 Committer: jfarrell <[email protected]> Committed: Wed Mar 19 09:50:10 2014 -0400 ---------------------------------------------------------------------- compiler/cpp/src/main.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/ec8daae7/compiler/cpp/src/main.h ---------------------------------------------------------------------- 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);
