Skip to content

Commit 12ae118

Browse files
Vincent Couverttkrasnukha
authored andcommitted
Fix issue #43: Errors building with mingw-w64 toolchain.
1 parent 3598f3d commit 12ae118

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/MIDataTypes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
// Windows headers:
1818
#ifdef _WIN32
1919

20+
#include <windows.h>
21+
2022
// Debugging:
2123
#ifdef _DEBUG
2224
#include <crtdbg.h>

src/Platform.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88
#pragma once
99

10-
#if defined(_MSC_VER)
10+
#if defined(_WIN32)
1111

1212
#include <inttypes.h>
1313
#include <io.h>
@@ -45,7 +45,9 @@ struct termios {
4545
speed_t c_ospeed; // output speed
4646
};
4747

48+
#if !defined(__MINGW32__) || !defined(_PID_T_) || defined(NO_OLDNAMES)
4849
typedef long pid_t;
50+
#endif
4951

5052
#define STDIN_FILENO 0
5153
#define PATH_MAX 32768

0 commit comments

Comments
 (0)