test_helpers.h 268 B

1234567891011121314151617
  1. /* Compatibility helpers for the test programs. */
  2. #ifndef _TEST_HELPERS_H_
  3. #define _TEST_HELPERS_H_
  4. #ifdef _WIN32
  5. #include <io.h>
  6. #include <fcntl.h>
  7. #define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
  8. #else
  9. #define SET_BINARY_MODE(file)
  10. #endif
  11. #endif