Skip to content

Commit 064c126

Browse files
still trying...
1 parent d4d963c commit 064c126

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/stdhdr.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ Boston, MA 02111-1307, USA. */
3535
#include <limits.h> // gives INT_MAX
3636
#include <signal.h> // for sig_atomic_t and signal handling
3737

38-
#if defined(__MINGW32__) || defined(__MINGW64__)
38+
#if defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__) || defined(__MINGW64__)
3939
#include <io.h>
40+
#include <unistd.h>
41+
#ifndef STDIN_FILENO
42+
#define STDIN_FILENO 0
43+
#endif
4044
#else
4145
#include <unistd.h>
4246
#endif

0 commit comments

Comments
 (0)