Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unistd.hh « util - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f99be592a32c8b31b5da269db7967aeff83d3348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef UTIL_UNISTD_H
#define UTIL_UNISTD_H

#if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)

// 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