Skip to content

Commit 1d418aa

Browse files
committed
Merge pull request flann-lib#257 from erikbern/master
Fixed compilation on Ubuntu 12.04
2 parents 5ea7d04 + c5419a4 commit 1d418aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cpp/flann/algorithms/hierarchical_clustering_index.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
#include <cassert>
3838
#include <limits>
3939
#include <cmath>
40-
#include <stdint.h>
40+
41+
#ifndef SIZE_MAX
42+
#define SIZE_MAX ((size_t) -1)
43+
#endif
4144

4245
#include "flann/general.h"
4346
#include "flann/algorithms/nn_index.h"

0 commit comments

Comments
 (0)