Commit 54e3b97c authored by Ghislain MARY's avatar Ghislain MARY

Do not define MIN() and MAX() only on unix...

parent 9dbb3afa
......@@ -52,13 +52,6 @@
#include <sys/time.h>
#include <netdb.h>
#ifndef MIN
#define MIN(a,b) (((a)>(b)) ? (b) : (a))
#endif
#ifndef MAX
#define MAX(a,b) (((a)>(b)) ? (a) : (b))
#endif
typedef int bctbx_socket_t;
typedef pthread_t bctbx_thread_t;
......@@ -306,6 +299,13 @@ typedef unsigned char bool_t;
#define TRUE 1
#define FALSE 0
#ifndef MIN
#define MIN(a,b) (((a)>(b)) ? (b) : (a))
#endif
#ifndef MAX
#define MAX(a,b) (((a)>(b)) ? (a) : (b))
#endif
typedef struct bctoolboxTimeSpec{
int64_t tv_sec;
int64_t tv_nsec;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment