mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
268 B
18 lines
268 B
8 years ago
|
/* Compatibility helpers for the test programs. */
|
||
|
|
||
|
#ifndef _TEST_HELPERS_H_
|
||
|
#define _TEST_HELPERS_H_
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#include <io.h>
|
||
|
#include <fcntl.h>
|
||
|
#define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
|
||
|
|
||
|
#else
|
||
|
#define SET_BINARY_MODE(file)
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#endif
|