mirror of
https://github.com/gperftools/gperftools
synced 2025-01-02 04:32:03 +00:00
unbreak compilation with visual studio
Specifically, this commit adds missing fake_stacktrace_scope.cc to msvc build and removes undef-ing of PERFTOOLS_DLL_DECL by tcmalloc.h.
This commit is contained in:
parent
126d4582c1
commit
d4d99eb608
@ -60,6 +60,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef PERFTOOLS_DLL_DECL
|
||||
#define PERFTOOLS_DLL_DECL_DEFINED
|
||||
# ifdef _WIN32
|
||||
# define PERFTOOLS_DLL_DECL __declspec(dllimport)
|
||||
# else
|
||||
@ -135,7 +136,11 @@ extern "C" {
|
||||
#if !defined(GPERFTOOLS_CONFIG_H_)
|
||||
|
||||
#undef PERFTOOLS_THROW
|
||||
|
||||
#ifdef PERFTOOLS_DLL_DECL_DEFINED
|
||||
#undef PERFTOOLS_DLL_DECL
|
||||
#undef PERFTOOLS_DLL_DECL_DEFINED
|
||||
#endif
|
||||
|
||||
#endif /* GPERFTOOLS_CONFIG_H_ */
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
|
||||
#ifndef GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
|
||||
#define GOOGLE_PERFTOOLS_WINDOWS_CONFIG_H_
|
||||
/* used by tcmalloc.h */
|
||||
#define GPERFTOOLS_CONFIG_H_
|
||||
|
||||
/* define this if you are linking tcmalloc statically and overriding the
|
||||
* default allocators.
|
||||
|
@ -55,6 +55,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef PERFTOOLS_DLL_DECL
|
||||
#define PERFTOOLS_DLL_DECL_DEFINED
|
||||
# ifdef _WIN32
|
||||
# define PERFTOOLS_DLL_DECL __declspec(dllimport)
|
||||
# else
|
||||
@ -127,7 +128,11 @@ extern "C" {
|
||||
#if !defined(GPERFTOOLS_CONFIG_H_)
|
||||
|
||||
#undef PERFTOOLS_THROW
|
||||
|
||||
#ifdef PERFTOOLS_DLL_DECL_DEFINED
|
||||
#undef PERFTOOLS_DLL_DECL
|
||||
#undef PERFTOOLS_DLL_DECL_DEFINED
|
||||
#endif
|
||||
|
||||
#endif /* GPERFTOOLS_CONFIG_H_ */
|
||||
|
||||
|
@ -55,6 +55,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef PERFTOOLS_DLL_DECL
|
||||
#define PERFTOOLS_DLL_DECL_DEFINED
|
||||
# ifdef _WIN32
|
||||
# define PERFTOOLS_DLL_DECL __declspec(dllimport)
|
||||
# else
|
||||
@ -127,7 +128,11 @@ extern "C" {
|
||||
#if !defined(GPERFTOOLS_CONFIG_H_)
|
||||
|
||||
#undef PERFTOOLS_THROW
|
||||
|
||||
#ifdef PERFTOOLS_DLL_DECL_DEFINED
|
||||
#undef PERFTOOLS_DLL_DECL
|
||||
#undef PERFTOOLS_DLL_DECL_DEFINED
|
||||
#endif
|
||||
|
||||
#endif /* GPERFTOOLS_CONFIG_H_ */
|
||||
|
||||
|
@ -622,6 +622,23 @@
|
||||
RuntimeLibrary="2"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\src\fake_stacktrace_scope.cc">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\src\windows; ..\..\src"
|
||||
RuntimeLibrary="3"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\src\windows; ..\..\src"
|
||||
RuntimeLibrary="2"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
|
Loading…
Reference in New Issue
Block a user