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);