summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-16 19:39:37 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-04-16 21:10:56 +0200
commit31abe9e44df092a557a34537f6b4ffa48d12edc4 (patch)
treed21ce7766a829943619432565433e010021081b3 /sal
parent377d2d4bed5a085d0112482d01ce9b4215fb83a6 (diff)
try to fix werror + pch build on linux
This should fix RandomConfig tb run #396 Change-Id: Idd7984e3c4225b08db50b2451112135aaf2e1890 Reviewed-on: https://gerrit.libreoffice.org/36584 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/pch/precompiled_sal.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx
index 8699e20ce1e1..06a35d546a4b 100644
--- a/sal/inc/pch/precompiled_sal.hxx
+++ b/sal/inc/pch/precompiled_sal.hxx
@@ -20,9 +20,11 @@
./bin/update_pch_bisect ./sal/inc/pch/precompiled_sal.hxx "make sal.build" --find-conflicts
*/
+#if defined(_WIN32)
#if !defined _CRT_RAND_S
#define _CRT_RAND_S
#endif
+#endif
#include <algorithm>
#include <cassert>