47 #ifndef GOOGLE_PROTOBUF_IO_IO_WIN32_H__
48 #define GOOGLE_PROTOBUF_IO_IO_WIN32_H__
55 #include <google/protobuf/port.h>
56 #include <google/protobuf/port_def.inc>
65 PROTOBUF_EXPORT
FILE* fopen(
const char*
path,
const char*
mode);
67 PROTOBUF_EXPORT
int chdir(
const char*
path);
68 PROTOBUF_EXPORT
int close(
int fd);
69 PROTOBUF_EXPORT
int dup(
int fd);
70 PROTOBUF_EXPORT
int dup2(
int fd1,
int fd2);
71 PROTOBUF_EXPORT
int mkdir(
const char*
path,
int _mode);
74 PROTOBUF_EXPORT
int setmode(
int fd,
int mode);
79 enum class ExpandWildcardsResult {
81 kErrorNoMatchingFile = 1,
82 kErrorInputPathConversion = 2,
83 kErrorOutputPathConversion = 3,
94 PROTOBUF_EXPORT ExpandWildcardsResult ExpandWildcards(
100 PROTOBUF_EXPORT
bool wcs_to_mbs(
const wchar_t* s,
std::string*
out,
104 PROTOBUF_EXPORT
bool mbs_to_wcs(
const char* s,
std::wstring*
out,
bool inUtf8);
120 #define W_OK 02 // not defined by MSVC for whatever reason
124 #define F_OK 00 // not defined by MSVC for whatever reason
128 #define STDIN_FILENO 0
131 #ifndef STDOUT_FILENO
132 #define STDOUT_FILENO 1
135 #include <google/protobuf/port_undef.inc>
137 #endif // defined(_WIN32)
139 #endif // GOOGLE_PROTOBUF_IO_IO_WIN32_H__