Skip to content

Commit f61dbe0

Browse files
author
wonder
committed
Spatial indexing library:
- fixed a crash under windows - don't display debug messages git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6661 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c2da041 commit f61dbe0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/core/spatialindex/include/PointerPool.h

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
#include "PoolPointer.h"
2626

27+
#define NDEBUG 1
28+
2729
namespace Tools
2830
{
2931
template <class X> class PointerPool

src/core/spatialindex/rtree/PointerPoolNode.h

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
#include "Node.h"
2626

27+
#define NDEBUG 1
28+
2729
using namespace SpatialIndex;
2830

2931
namespace Tools

src/core/spatialindex/storagemanager/RandomEvictionsBuffer.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "RandomEvictionsBuffer.h"
2828

2929
#ifdef WIN32
30-
double drand48(void) { return rand(); }
30+
double drand48(void) { return (double) rand() / (double) RAND_MAX; }
3131
void srand48(long seed) { srand(seed); }
3232
#endif
3333

0 commit comments

Comments
 (0)