Commit aa012f6b authored by Willem Thiart's avatar Willem Thiart
Browse files

Add ifndef to min and max

parent e2cdb561
......@@ -20,8 +20,13 @@
#include "raft_log.h"
#include "raft_private.h"
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif
#ifndef max
#define max(a, b) ((a) < (b) ? (b) : (a))
#endif
static void __log(raft_server_t *me_, raft_node_t* node, const char *fmt, ...)
{
......
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