Fixing thread naming call and let the class setting RANDOM_MIN/RANDOM_MAX.
#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
#elif defined(__NetBSD__)
- pthread_setname_np(pthread_self(), name.c_str());
+ pthread_setname_np(pthread_self(), "%s", const_cast<char*>(name.c_str()));
#elif defined(__APPLE__)