Skip to content

Commit

Permalink
Move definition of O_BINARY to hc.cpp
Browse files Browse the repository at this point in the history
This is the only place it is used.
  • Loading branch information
LegalizeAdulthood committed Mar 17, 2024
1 parent 9c491d3 commit eaf029a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions hc/hc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions headers/unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

#include <unistd.h>

#if !defined(O_BINARY)
#define O_BINARY 0
#endif
typedef float FLOAT4;

#if !defined(_MAX_FNAME)
Expand Down

0 comments on commit eaf029a

Please sign in to comment.