summaryrefslogtreecommitdiff
path: root/src/windows/preprocess.sh
diff options
context:
space:
mode:
authormayah <mayah@mayah.jp>2017-03-07 02:22:24 (GMT)
committermayah <mayah@mayah.jp>2017-03-07 02:22:24 (GMT)
commit8fa778aa12cfd24767ca15bfd630f1e820eabd92 (patch)
tree2bfcf37e266fdb124f66fbbcc2f3d4290a58693f /src/windows/preprocess.sh
parentab6545470bdb6fb14442923b2aa3289983bea968 (diff)
downloadglog-8fa778aa12cfd24767ca15bfd630f1e820eabd92.zip
glog-8fa778aa12cfd24767ca15bfd630f1e820eabd92.tar.gz
glog-8fa778aa12cfd24767ca15bfd630f1e820eabd92.tar.bz2
Add __declspec(noreturn) on Win
Currently cl.exe doesn't know LOG(FATAL) exits the program. Set __declspec(noreturn).
Diffstat (limited to 'src/windows/preprocess.sh')
-rwxr-xr-xsrc/windows/preprocess.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows/preprocess.sh b/src/windows/preprocess.sh
index 5398988..c35e929 100755
--- a/src/windows/preprocess.sh
+++ b/src/windows/preprocess.sh
@@ -95,7 +95,7 @@ DLLDEF_DEFINES="\
-e "s!@ac_cv_have_libgflags@!0!g" \
-e "s!@ac_cv_have___builtin_expect@!0!g" \
-e "s!@ac_cv_cxx_using_operator@!1!g" \
- -e "s!@ac_cv___attribute___noreturn@!!g" \
+ -e "s!@ac_cv___attribute___noreturn@!__declspec(noreturn)!g" \
-e "s!@ac_cv___attribute___noinline@!!g" \
-e "s!@ac_cv___attribute___printf_4_5@!!g" \
-e "s!@ac_google_attribute@!${HAVE___ATTRIBUTE__:-0}!g" \