* libmisc/salt.c: Removed MIN and MAX macros.
+2009-04-20 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/defines.h: Added MIN and MAX macros.
+ * libmisc/salt.c: Removed MIN and MAX macros.
+
2009-04-20 Sven Joachim <svenjoac@gmx.de>
* NEWS, src/lastlog.c: Fix regression causing empty reports.
# define unused
#endif
+/* ! Arguments evaluated twice ! */
+#ifndef MIN
+#define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
+#ifndef MAX
+#define MAX(x,y) (((x) > (y)) ? (x) : (y))
+#endif
+
#endif /* _DEFINES_H_ */
return (size_t) (8 + rand_size);
}
-/* ! Arguments evaluated twice ! */
-#define MAX(x,y) ((x) > (y) ? (x) : (y))
-#define MIN(x,y) ((x) < (y) ? (x) : (y))
-
/* Default number of rounds if not explicitly specified. */
#define ROUNDS_DEFAULT 5000
/* Minimum number of rounds. */