diff options
author | tono <tono@openoffice.org> | 2010-03-24 19:26:36 +0900 |
---|---|---|
committer | tono <tono@openoffice.org> | 2010-03-24 19:26:36 +0900 |
commit | fcf883e6883a699f8b8b3b3c34eeb9ede9230eee (patch) | |
tree | cbfb581a9a35a7ec17671170ef4675f8f0cd6ccf | |
parent | 0b652fdae6703a725d3f2a39ce5aad8cee0683ac (diff) |
i#110194: Mingw port update fix: use alloca instead of _alloca in shell
-rw-r--r-- | shell/source/backends/wininetbe/wininetbackend.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx index e28bab3affe4..af6f1036496d 100644 --- a/shell/source/backends/wininetbe/wininetbackend.cxx +++ b/shell/source/backends/wininetbe/wininetbackend.cxx @@ -37,6 +37,7 @@ #endif #include <windows.h> #include <wininet.h> +#include <sal/alloca.h> #if defined _MSC_VER #pragma warning(pop) #endif @@ -138,11 +139,11 @@ WinInetBackend::WinInetBackend() // in a stack overflow exception, we assume // this never happens, because of the relatively // small amount of memory we need - // _alloca is nice because it is fast and we don't + // alloca is nice because it is fast and we don't // have to free the allocated memory, it will be // automatically done lpi = reinterpret_cast< LPINTERNET_PROXY_INFO >( - _alloca( dwLength ) ); + alloca( dwLength ) ); bRet = lpfnInternetQueryOption( NULL, |