Skip to content

Commit

Permalink
Adds MIN/MAX macros to build on MACOS
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilonrt committed Mar 11, 2023
1 parent 1968de6 commit d8fe0ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mbpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@
# define MBPOLL_FLOAT_DISABLE
#endif

#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif

/* macros =================================================================== */
#define BASENAME(f) (f)

Expand Down

0 comments on commit d8fe0ea

Please sign in to comment.