firmware/extra/nanopb/tests/common/test_helpers.h
Patrick Moessler 0c83634f42 Initial commit
2019-10-13 00:37:11 +02:00

17 lines
268 B
C

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