diff options
author | Ruben Van Boxem <vanboxem.ruben@gmail.com> | 2010-04-12 20:07:05 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2010-05-05 21:13:21 (GMT) |
commit | 7883f952b06e378eef7662a42a8c466cbe5aa285 (patch) | |
tree | 23ddf84c15e545f177238e83915e652edebce2f3 /Source/cmWin32ProcessExecution.cxx | |
parent | e0acb6ca5fbe5429b6a1cc7f7188dd3e388ffd7c (diff) | |
download | CMake-7883f952b06e378eef7662a42a8c466cbe5aa285.zip CMake-7883f952b06e378eef7662a42a8c466cbe5aa285.tar.gz CMake-7883f952b06e378eef7662a42a8c466cbe5aa285.tar.bz2 |
Win64 fixes for mingw-w64 compilation
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r-- | Source/cmWin32ProcessExecution.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx index c8b4ae4..d9bd26c 100644 --- a/Source/cmWin32ProcessExecution.cxx +++ b/Source/cmWin32ProcessExecution.cxx @@ -22,7 +22,8 @@ #if defined(__BORLANDC__) # define STRICMP stricmp # define TO_INTPTR(x) ((long)(x)) -#else // Visual studio +#endif // Borland +#if defined(_MSC_VER) // Visual studio # if ( _MSC_VER >= 1300 ) # include <stddef.h> # define TO_INTPTR(x) ((intptr_t)(x)) @@ -30,7 +31,12 @@ # define TO_INTPTR(x) ((long)(x)) # endif // Visual studio .NET # define STRICMP _stricmp -#endif // Borland +#endif // Visual Studio +#if defined(__MINGW32__) +# include <stdint.h> +# define TO_INTPTR(x) ((intptr_t)(x)) +# define STRICMP _stricmp +#endif // MinGW #define POPEN_1 1 #define POPEN_2 2 |