summaryrefslogtreecommitdiff
path: root/sal/inc/pch
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-03 13:52:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-04 17:36:22 +0000
commit4af9612f2be9e023e762831207cbdb1d5f25906f (patch)
treef945e83dfc005b9984cc527831b5edfe4ecbbf3c /sal/inc/pch
parentd35c25ee8f2e3125ddcd48b4fae75359a5b0ab8f (diff)
Change sal/osl/w32/*.c -> *.cxx
...and fix any ensuing errors/warnings, but no further C++'ification. Not sure whether any parts of dllentry.c would need to be extern "C", so leaving that one alone for now. TODO: Put definition of _CRT_RAND_S into bin/update_pch, so it doesn't get removed again from sal/inc/pch/precompiled_sal.hxx. (For the surrounding #ifndef see 244d22a3d27b303d44f59296a19dc4cb31fd429d "Work around -Werror,-Wunused-macros with clang-cl".) Change-Id: I2ada3717845eb0be0c559465d68e00e3a7720156 Reviewed-on: https://gerrit.libreoffice.org/34860 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/inc/pch')
-rw-r--r--sal/inc/pch/precompiled_sal.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx
index 5f94a26f429e..8699e20ce1e1 100644
--- a/sal/inc/pch/precompiled_sal.hxx
+++ b/sal/inc/pch/precompiled_sal.hxx
@@ -20,6 +20,10 @@
./bin/update_pch_bisect ./sal/inc/pch/precompiled_sal.hxx "make sal.build" --find-conflicts
*/
+#if !defined _CRT_RAND_S
+#define _CRT_RAND_S
+#endif
+
#include <algorithm>
#include <cassert>
#include <cstddef>