summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configure_pch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/configure/configure_pch.h b/tools/configure/configure_pch.h
index 0831364fe1..36a25dcca8 100644
--- a/tools/configure/configure_pch.h
+++ b/tools/configure/configure_pch.h
@@ -39,6 +39,11 @@
**
****************************************************************************/
+// for rand_s, _CRT_RAND_S must be #defined before #including stdlib.h.
+// put it at the beginning so some indirect inclusion doesn't break it
+#ifndef _CRT_RAND_S
+#define _CRT_RAND_S
+#endif
#include <qplatformdefs.h>
#include <qglobal.h>
#include <qlist.h>