Backed out changeset 4b792c35d0be (bug 1041325) because of build bustage

This commit is contained in:
Ehsan Akhgari 2014-07-20 19:19:05 -04:00
parent d7aaac4087
commit c30cc42648
2 changed files with 8 additions and 2 deletions

View File

@ -5,7 +5,10 @@
#include "build/build_config.h"
#if defined(COMPILER_MSVC)
#include <intrin.h>
// MSDN says to #include <intrin.h>, but that breaks the VS2005 build.
extern "C" {
void* _ReturnAddress();
}
#endif
#include "base/location.h"

View File

@ -18,7 +18,10 @@ namespace win {
// TODO(rvargas): remove this with the rest of the verifier.
#if defined(COMPILER_MSVC)
#include <intrin.h>
// MSDN says to #include <intrin.h>, but that breaks the VS2005 build.
extern "C" {
void* _ReturnAddress();
}
#define BASE_WIN_GET_CALLER _ReturnAddress()
#elif defined(COMPILER_GCC)
#define BASE_WIN_GET_CALLER __builtin_extract_return_addr(\\