]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/util.h
Performance tuning in afp_read: factor out an unneccessary filesytem read when sendfi...
[netatalk.git] / include / atalk / util.h
index 9b0a405f31b96dcc82fcd356f8a0631e5e72a170..3a6dd24498bb85e7e66c84800f4edb633ca26aeb 100644 (file)
 #endif /* NDEBUG */
 
 #define STRCMP(a,b,c) (strcmp(a,c) b 0)
+#ifndef MAX
+#define MAX(a,b) ((a) > (b) ? a : b)
+#endif
+#ifndef MIN
+#define MIN(a,b) ((a) < (b) ? a : b)
+#endif
 
 #if BYTE_ORDER == BIG_ENDIAN
 #define hton64(x)       (x)