mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
23 lines
303 B
C++
23 lines
303 B
C++
#ifndef UTIL_UNISTD_H
|
|
#define UTIL_UNISTD_H
|
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
|
|
|
// Windows doesn't define <unistd.h>
|
|
//
|
|
// So we define what we need here instead:
|
|
//
|
|
#define STDIN_FILENO=0
|
|
#define STDOUT_FILENO=1
|
|
|
|
|
|
#else // Huzzah for POSIX!
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // UTIL_UNISTD_H
|