浏览代码

Merge topic 'mingw-w64-compile'

9557b403 cmFileCommand: Fix build on mingw-w64
845f5e3c bootstrap: fix build on mingw-w64

Acked-by: Kitware Robot <[email protected]>
Merge-request: !837
Brad King 8 年之前
父节点
当前提交
67d5593efa
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 4 0
      Source/cmFileCommand.cxx
  2. 1 0
      bootstrap

+ 4 - 0
Source/cmFileCommand.cxx

@@ -44,6 +44,10 @@
 #include "cmELF.h"
 #endif
 
+#if defined(_WIN32)
+#include <windows.h>
+#endif
+
 class cmSystemToolsFileTime;
 
 // Table of permissions flags.

+ 1 - 0
bootstrap

@@ -1428,6 +1428,7 @@ fi
 cmake_c_flags_String="-DKWSYS_STRING_C"
 if ${cmake_system_mingw}; then
   cmake_c_flags_EncodingC="-DKWSYS_ENCODING_DEFAULT_CODEPAGE=CP_ACP"
+  cmake_cxx_flags_EncodingCXX="${cmake_c_flags_EncodingC}"
   cmake_cxx_flags_cmProcessOutput="${cmake_c_flags_EncodingC}"
 fi
 cmake_cxx_flags_SystemTools="