Skip to content

Commit

Permalink
Fix ozip
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Feb 20, 2024
1 parent 76faf58 commit 1515b01
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
1 change: 1 addition & 0 deletions build/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
builds/
_deps/
.vs/
3 changes: 0 additions & 3 deletions build/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ s_project(oodle::test EXEC IS_SIMPLE)
s_link_libraries(PRIVATE oodle::data::static)

s_set_properties(PROPERTIES OUTPUT_NAME "ozip")

# clang-cl complains
s_compile_options(PRIVATE /EHsc)
28 changes: 14 additions & 14 deletions build/test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,6 @@ char logfilename[] = "c:\\test\\OZIP.log";
#define o_fileno fileno
#endif

#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif

#if defined(_MSC_VER) && _MSC_VER >= 1600 // in 2010 aka 10.0 and later
#define RR_UNUSED_VARIABLE(x) (void) (x)
#else
#define RR_UNUSED_VARIABLE(x) (void)(sizeof(x))
#endif

#define NO_OODLEX

#ifdef NO_OODLEX
Expand Down Expand Up @@ -179,6 +165,20 @@ static void OodleX_Shutdown(const char* threadProfileLogName OODEFAULT(NULL),
}
#endif

#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif

#if defined(_MSC_VER) && _MSC_VER >= 1600 // in 2010 aka 10.0 and later
#define RR_UNUSED_VARIABLE(x) (void) (x)
#else
#define RR_UNUSED_VARIABLE(x) (void)(sizeof(x))
#endif

#ifndef MAX_PATH
#define MAX_PATH 260
#endif
Expand Down

0 comments on commit 1515b01

Please sign in to comment.