1 //===------------------------- fallback_malloc.h --------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef _FALLBACK_MALLOC_H
11 #define _FALLBACK_MALLOC_H
12 
13 #include <cstddef> // for size_t
14 
15 namespace __cxxabiv1 {
16 
17 #pragma GCC visibility push(hidden)
18 
19 // Allocate some memory from _somewhere_
20 void * __malloc_with_fallback(size_t size);
21 
22 // Allocate and zero-initialize memory from _somewhere_
23 void * __calloc_with_fallback(size_t count, size_t size);
24 
25 void __free_with_fallback(void *ptr);
26 
27 #pragma GCC visibility pop
28 
29 } // namespace __cxxabiv1
30 
31 #endif
32