Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix windows build
  • Loading branch information
jef-n committed Oct 12, 2015
1 parent 482420c commit 1be64a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/geometry/qgsgeos.cpp
Expand Up @@ -49,6 +49,16 @@ email : marco.hugentobler at sourcepole dot com
return r; \
}

#if defined(_MSC_VER) && (_MSC_VER < 1800)
namespace std
{
double round( double d )
{
return d < 0.0 ? ceil( d - 0.5 ) : floor( d + 0.5 );
}
}
#endif

static void throwGEOSException( const char *fmt, ... )
{
va_list ap;
Expand Down

0 comments on commit 1be64a5

Please sign in to comment.