зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1041325 - Use intrin.h for _ReturnAddress in the chromium sandbox code; r=bbondy
This commit is contained in:
Родитель
800fc2b192
Коммит
006ec45925
|
@ -5,10 +5,7 @@
|
|||
#include "build/build_config.h"
|
||||
|
||||
#if defined(COMPILER_MSVC)
|
||||
// MSDN says to #include <intrin.h>, but that breaks the VS2005 build.
|
||||
extern "C" {
|
||||
void* _ReturnAddress();
|
||||
}
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
#include "base/location.h"
|
||||
|
|
|
@ -18,10 +18,7 @@ namespace win {
|
|||
|
||||
// TODO(rvargas): remove this with the rest of the verifier.
|
||||
#if defined(COMPILER_MSVC)
|
||||
// MSDN says to #include <intrin.h>, but that breaks the VS2005 build.
|
||||
extern "C" {
|
||||
void* _ReturnAddress();
|
||||
}
|
||||
#include <intrin.h>
|
||||
#define BASE_WIN_GET_CALLER _ReturnAddress()
|
||||
#elif defined(COMPILER_GCC)
|
||||
#define BASE_WIN_GET_CALLER __builtin_extract_return_addr(\\
|
||||
|
|
Загрузка…
Ссылка в новой задаче