Navigation Menu

Skip to content

Commit

Permalink
Don't use #ifndef ... #else
Browse files Browse the repository at this point in the history
Double negation is not readable.
  • Loading branch information
kou committed Oct 4, 2012
1 parent 9aa6ce1 commit 562c0dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ha_mroonga.cpp
Expand Up @@ -38,14 +38,14 @@
#include <sys/types.h>
#include <sys/stat.h>

#ifndef WIN32
# include <dirent.h>
# include <unistd.h>
# define MRN_MKDIR(pathname, mode) mkdir((pathname), (mode))
#else
#ifdef WIN32
# include <math.h>
# include <direct.h>
# define MRN_MKDIR(pathname, mode) _mkdir((pathname))
#else
# include <dirent.h>
# include <unistd.h>
# define MRN_MKDIR(pathname, mode) mkdir((pathname), (mode))
#endif

#include "mrn_err.h"
Expand Down

0 comments on commit 562c0dc

Please sign in to comment.