diff --git a/mfbt/MemoryChecking.h b/mfbt/MemoryChecking.h index 52d52aaba8a..ec290b37e8a 100644 --- a/mfbt/MemoryChecking.h +++ b/mfbt/MemoryChecking.h @@ -34,14 +34,14 @@ #if defined(MOZ_ASAN) #include +#include "mozilla/Types.h" + extern "C" { /* These definitions are usually provided through the * sanitizer/asan_interface.h header installed by ASan. */ -void __asan_poison_memory_region(void const volatile *addr, size_t size) - __attribute__((visibility("default"))); -void __asan_unpoison_memory_region(void const volatile *addr, size_t size) - __attribute__((visibility("default"))); +void MOZ_EXPORT __asan_poison_memory_region(void const volatile *addr, size_t size); +void MOZ_EXPORT __asan_unpoison_memory_region(void const volatile *addr, size_t size); #define MOZ_MAKE_MEM_NOACCESS(addr, size) \ __asan_poison_memory_region((addr), (size))