Navigation Menu

Skip to content

Commit

Permalink
win32: fix not to define function as inline
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Oct 4, 2012
1 parent aaf06dc commit 9aa6ce1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ha_mroonga.cpp
Expand Up @@ -44,7 +44,6 @@
# define MRN_MKDIR(pathname, mode) mkdir((pathname), (mode))
#else
# include <math.h>
inline double round(double x) { return (floor(x + 0.5)); }
# include <direct.h>
# define MRN_MKDIR(pathname, mode) _mkdir((pathname))
#endif
Expand Down Expand Up @@ -139,6 +138,13 @@ static CHARSET_INFO *mrn_charset_koi8r = NULL;

static int32 mrn_utc_diff_in_seconds = 0;

#ifdef WIN32
static double round(double x)
{
return (floor(x + 0.5));
}
#endif

static void mrn_init_encoding_map()
{
CHARSET_INFO **cs;
Expand Down

0 comments on commit 9aa6ce1

Please sign in to comment.