THRIFT-1031 Patch to compile Thrift for vc++ 9.0 and 10.0 (partial)
no chmod on windows for go and py compiler
Patch: James Dickson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1171520 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/generate/t_go_generator.cc b/compiler/cpp/src/generate/t_go_generator.cc
index bc7f85c..cb54ba6 100755
--- a/compiler/cpp/src/generate/t_go_generator.cc
+++ b/compiler/cpp/src/generate/t_go_generator.cc
@@ -1954,6 +1954,8 @@
   // Close service file
   f_remote.close();
 
+#ifndef _MSC_VER
+
   // Make file executable, love that bitwise OR action
   chmod(f_remote_name.c_str(),
           S_IRUSR
@@ -1966,6 +1968,9 @@
         | S_IXOTH
 #endif
   );
+
+#endif // _MSC_VER
+
 }
 
 /**
diff --git a/compiler/cpp/src/generate/t_py_generator.cc b/compiler/cpp/src/generate/t_py_generator.cc
index 34acba4..04b1791 100644
--- a/compiler/cpp/src/generate/t_py_generator.cc
+++ b/compiler/cpp/src/generate/t_py_generator.cc
@@ -1548,6 +1548,8 @@
   // Close service file
   f_remote.close();
 
+#ifndef _MSC_VER
+
   // Make file executable, love that bitwise OR action
   chmod(f_remote_name.c_str(),
           S_IRUSR
@@ -1560,6 +1562,8 @@
         | S_IXOTH
 #endif
   );
+
+#endif // _MSC_VER
 }
 
 /**