THRIFT-4279 Wrong path in include directive in generated Thrift sources
Client: Erlang
Patch: David Hull <david.hull@openx.com>
This closes #1329
diff --git a/compiler/cpp/src/thrift/generate/t_erl_generator.cc b/compiler/cpp/src/thrift/generate/t_erl_generator.cc
index f63b3e9..ccd43b7 100644
--- a/compiler/cpp/src/thrift/generate/t_erl_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_erl_generator.cc
@@ -266,8 +266,8 @@
<< "-module(" << program_module_name << "_types)." << endl
<< erl_imports() << endl;
- f_types_file_ << "-include(\"" << f_types_hrl_name << "\")." << endl
- << endl;
+ f_types_file_ << "-include(\"" << program_module_name << "_types.hrl\")." << endl
+ << endl;
f_types_hrl_file_ << render_includes() << endl;
@@ -281,11 +281,11 @@
f_consts_file_ << erl_autogen_comment() << endl
<< "-module(" << program_module_name << "_constants)." << endl
<< erl_imports() << endl
- << "-include(\"" << f_types_hrl_name << "\")." << endl
+ << "-include(\"" << program_module_name << "_types.hrl\")." << endl
<< endl;
f_consts_hrl_file_ << erl_autogen_comment() << endl << erl_imports() << endl
- << "-include(\"" << f_types_hrl_name << "\")." << endl << endl;
+ << "-include(\"" << program_module_name << "_types.hrl\")." << endl << endl;
}
/**