diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2014-12-19 17:46:10 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2014-12-19 17:46:10 +0000 |
commit | 287b66756afd9fa44e3605b8eca650852b315003 (patch) | |
tree | 01e72c20feeb7be6f2e9cb5b2c4976afc7fee738 | |
parent | efb4873c7b7ce63b4de9618d28496221eda9641a (diff) | |
download | LibXtract-287b66756afd9fa44e3605b8eca650852b315003.tar.gz LibXtract-287b66756afd9fa44e3605b8eca650852b315003.tar.bz2 LibXtract-287b66756afd9fa44e3605b8eca650852b315003.zip |
Add missing MIN() macro define
-rw-r--r-- | src/c-ringbuf/ringbuf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c-ringbuf/ringbuf.c b/src/c-ringbuf/ringbuf.c index 8b8a738..b1816d8 100644 --- a/src/c-ringbuf/ringbuf.c +++ b/src/c-ringbuf/ringbuf.c @@ -24,6 +24,10 @@ #include <sys/param.h> #include <assert.h> +#ifndef MIN +#define MIN(x,y) ((x)>(y)?(y):(x)) +#endif + /* * The code is written for clarity, not cleverness or performance, and * contains many assert()s to enforce invariant assumptions and catch |