Skip to content

Commit

Permalink
Use internal_defs.h in interface.h analagous to sanitizer_internal_de…
Browse files Browse the repository at this point in the history
…fs.h, but that does use scudo_interface_internal.h so maybe the analogy doesn't hold...
  • Loading branch information
rgal committed Jan 28, 2021
1 parent 602e45f commit 7eed8f3
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions compiler-rt/lib/scudo/standalone/include/scudo/interface.h
Expand Up @@ -12,20 +12,10 @@
#include <stddef.h>
#include <stdint.h>

extern "C" {
#if defined(_WIN32)
#define SCUDO_WINDOWS 1
#else
#define SCUDO_WINDOWS 0
#endif
#include "internal_defs.h"

#if SCUDO_WINDOWS
#define WEAK
#else
#define WEAK __attribute__((weak))
#endif

WEAK const char *__scudo_default_options();
extern "C" {
INTERFACE WEAK const char *__scudo_default_options();

// Post-allocation & pre-deallocation hooks.
// They must be thread-safe and not use heap related functions.
Expand Down

0 comments on commit 7eed8f3

Please sign in to comment.