projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move repeating MIN/MAX macros into dropin.h.
[tinc]
/
src
/
dropin.h
diff --git
a/src/dropin.h
b/src/dropin.h
index
bc1951d
..
d1919e1
100644
(file)
--- a/
src/dropin.h
+++ b/
src/dropin.h
@@
-69,4
+69,12
@@
extern int nanosleep(const struct timespec *req, struct timespec *rem);
#define EAI_SYSTEM 0
#endif
+#ifndef MIN
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#endif
+
+#ifndef MAX
+#define MAX(a,b) (((a)>(b))?(a):(b))
+#endif
+
#endif