mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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:
parent
b7bc726486
commit
39e9c3036b
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user