mirror of
https://github.com/gperftools/gperftools
synced 2025-02-07 23:21:28 +00:00
enable ATTRIBUTE_NOINLINE for MSVC
This commit is contained in:
parent
9bde8d837b
commit
777182fbdf
@ -255,6 +255,11 @@ inline void bit_store(Dest *dest, const Source *source) {
|
||||
# define ATTRIBUTE_NOINLINE
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#undef ATTRIBUTE_NOINLINE
|
||||
#define ATTRIBUTE_NOINLINE __declspec(noinline)
|
||||
#endif
|
||||
|
||||
#if defined(HAVE___ATTRIBUTE__) && defined(__ELF__)
|
||||
# define ATTRIBUTE_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user