THRIFT-1124 add ifdef for crossplatform mkdir, ugly but it works

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1086852 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roger Meier 2011-03-30 06:14:06 +00:00
parent b7bc726486
commit 39e9c3036b

View File

@ -318,7 +318,11 @@ void t_go_generator::init_generator() {
for (sv_iter = services.begin(); sv_iter != services.end(); ++sv_iter) {
string service_dir = package_dir_+"/"+(*sv_iter)->get_name();
#ifdef MINGW
mkdir(service_dir.c_str());
#else
mkdir(service_dir.c_str(), 0755);
#endif
string f_init_name = service_dir+"/Makefile";
ofstream f_init;
f_init.open(f_init_name.c_str());