Navigation Menu

Skip to content

Commit

Permalink
win32: support missing round function for Visual Studio
Browse files Browse the repository at this point in the history
refs #1496

round function is missing on windows
See: http://msdn.microsoft.com/en-US/library/7wsh95e5(v=vs.80).aspx
  • Loading branch information
kenhys committed Oct 4, 2012
1 parent 1eb849d commit 44b84b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -41,6 +41,9 @@
#ifndef WIN32
# include <dirent.h>
# include <unistd.h>
#else
# include <math.h>
inline double round(double x) { return (floor(x + 0.5)); }
#endif

#include "mrn_err.h"
Expand Down

0 comments on commit 44b84b6

Please sign in to comment.