THRIFT-2386: Thrift refuses to link yylex
authorjfarrell <jfarrell@apache.org>
Wed, 19 Mar 2014 13:50:10 +0000 (09:50 -0400)
committerjfarrell <jfarrell@apache.org>
Wed, 19 Mar 2014 13:50:10 +0000 (09:50 -0400)
Client: compiler
Patch: Milan Freml

Fixes undefined reference to `yylex' due to upstream changes.

compiler/cpp/src/main.h

index f737e3f..9b0f3f3 100644 (file)
@@ -29,7 +29,9 @@
  * Defined in the flex library
  */
 
-int yylex(void);
+extern "C" {
+  int yylex(void);
+}
 
 int yyparse(void);