Skip to content

Commit

Permalink
Spatial indexing library:
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
wonder committed Feb 22, 2007
1 parent c2da041 commit f61dbe0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/spatialindex/include/PointerPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include "PoolPointer.h"

#define NDEBUG 1

namespace Tools
{
template <class X> class PointerPool
Expand Down
2 changes: 2 additions & 0 deletions src/core/spatialindex/rtree/PointerPoolNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

#include "Node.h"

#define NDEBUG 1

using namespace SpatialIndex;

namespace Tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "RandomEvictionsBuffer.h"

#ifdef WIN32
double drand48(void) { return rand(); }
double drand48(void) { return (double) rand() / (double) RAND_MAX; }
void srand48(long seed) { srand(seed); }
#endif

Expand Down

0 comments on commit f61dbe0

Please sign in to comment.