Skip to content

Commit 34033d0

Browse files
hebastoarun11299
andauthored
Fix cross-compiling with mingw toolchain (#99)
Co-authored-by: Arun Muralidharan <arun11299@gmail.com>
1 parent 04b015a commit 34033d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

subprocess.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Documentation for C++ subprocessing libraray.
6161

6262
extern "C" {
6363
#ifdef __USING_WINDOWS__
64-
#include <Windows.h>
64+
#include <windows.h>
6565
#include <io.h>
6666
#include <cwchar>
6767

@@ -155,7 +155,7 @@ class OSError: public std::runtime_error
155155
//--------------------------------------------------------------------
156156

157157
//Environment Variable types
158-
#ifndef _MSC_VER
158+
#ifndef __USING_WINDOWS__
159159
using platform_str_t = std::string;
160160
using platform_char_t = char;
161161
#else

0 commit comments

Comments
 (0)