diff options
Diffstat (limited to 'bin/update_pch')
-rwxr-xr-x | bin/update_pch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/update_pch b/bin/update_pch index 10cac0f9f718..ae275cc83cf9 100755 --- a/bin/update_pch +++ b/bin/update_pch @@ -744,6 +744,17 @@ def generate(includes, libname, filename, module): f.write('\n If after updating build fails, use the following command to locate conflicting headers:\n ./bin/update_pch_bisect {} "make {}.build" --find-conflicts\n*/\n'.format( filename, module)) + # sal needs this for rand_s() + if module == 'sal' and libname == 'sal': + sal_define = """ +#if defined(_WIN32) +#if !defined _CRT_RAND_S +#define _CRT_RAND_S +#endif +#endif +""" + f.write(sal_define) + # svx needs this (sendreportw32.cxx) if module == 'svx' and libname == 'svx': svx_define = """ |