From eaf029a6aa93089aadd01fd0a8a6c8b16d40ff3a Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 16 Mar 2024 20:41:52 -0600 Subject: [PATCH] Move definition of O_BINARY to hc.cpp This is the only place it is used. --- hc/hc.cpp | 4 ++++ headers/unix.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hc/hc.cpp b/hc/hc.cpp index c8045a58b..2a66a5b15 100644 --- a/hc/hc.cpp +++ b/hc/hc.cpp @@ -33,6 +33,10 @@ namespace fs = std::filesystem; +#if !defined(O_BINARY) +#define O_BINARY 0 +#endif + #define MAXFILE _MAX_FNAME #define MAXEXT _MAX_EXT diff --git a/headers/unix.h b/headers/unix.h index 11666a036..22c661310 100644 --- a/headers/unix.h +++ b/headers/unix.h @@ -3,9 +3,6 @@ #include -#if !defined(O_BINARY) -#define O_BINARY 0 -#endif typedef float FLOAT4; #if !defined(_MAX_FNAME)