Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
RedisLabs Raft
Commits
aa012f6b
Commit
aa012f6b
authored
Apr 03, 2016
by
Willem Thiart
Browse files
Add ifndef to min and max
parent
e2cdb561
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/raft_server.c
View file @
aa012f6b
...
...
@@ -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
,
...)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment