summaryrefslogtreecommitdiff
path: root/src/noise.h
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-08-25 19:50:41 +0100
committerGitHub <noreply@github.com>2020-08-25 20:50:41 +0200
commitb262184acf34896f36b4270aba29546fc5b0e65b (patch)
tree701d5c80f5426f39f31aa8eb9483a5a8144afe63 /src/noise.h
parent44c98089cf923fda924902bceec4edb01f36ce2c (diff)
downloadminetest-b262184acf34896f36b4270aba29546fc5b0e65b.tar.gz
minetest-b262184acf34896f36b4270aba29546fc5b0e65b.tar.bz2
minetest-b262184acf34896f36b4270aba29546fc5b0e65b.zip
NetBSD build fix proposal. (#10308)
Fixing thread naming call and let the class setting RANDOM_MIN/RANDOM_MAX.
Diffstat (limited to 'src/noise.h')
-rw-r--r--src/noise.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/noise.h b/src/noise.h
index 7b5e83251..613879890 100644
--- a/src/noise.h
+++ b/src/noise.h
@@ -29,6 +29,13 @@
#include "exceptions.h"
#include "util/string.h"
+#if defined(RANDOM_MIN)
+#undef RANDOM_MIN
+#endif
+#if defined(RANDOM_MAX)
+#undef RANDOM_MAX
+#endif
+
extern FlagDesc flagdesc_noiseparams[];
// Note: this class is not polymorphic so that its high level of