summaryrefslogtreecommitdiffstats
path: root/libs/nanopb/tests/common/test_helpers.h
blob: f77760a521b2ad09644f1f19e1b7efee72657d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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