Thrift: MinGW port.
Summary:
Todd Berman from imeem has contributed a patch that allows
the Thrift compiler to be built with MinGW and run on Windows.
Reviewed By: mcslee
Test Plan:
Built the compiler from scratch on Linux.
If my changes messed up the MinGW build, I'm sure Todd will yell at me.
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665420 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/thrifty.yy b/compiler/cpp/src/thrifty.yy
index e46d0ef..9475adf 100644
--- a/compiler/cpp/src/thrifty.yy
+++ b/compiler/cpp/src/thrifty.yy
@@ -825,9 +825,9 @@
if (g_parse_mode == PROGRAM) {
pwarning(1, "required keyword is ignored in argument lists.\n");
}
- $$ = t_field::OPT_IN_REQ_OUT;
+ $$ = t_field::T_OPT_IN_REQ_OUT;
} else {
- $$ = t_field::REQUIRED;
+ $$ = t_field::T_REQUIRED;
}
}
| tok_optional
@@ -836,14 +836,14 @@
if (g_parse_mode == PROGRAM) {
pwarning(1, "optional keyword is ignored in argument lists.\n");
}
- $$ = t_field::OPT_IN_REQ_OUT;
+ $$ = t_field::T_OPT_IN_REQ_OUT;
} else {
- $$ = t_field::OPTIONAL;
+ $$ = t_field::T_OPTIONAL;
}
}
|
{
- $$ = t_field::OPT_IN_REQ_OUT;
+ $$ = t_field::T_OPT_IN_REQ_OUT;
}
FieldValue: