Bumping gaia.json for 2 gaia-central revision(s) a=gaia-bump
[gecko.git] / memory / mozalloc / mozalloc_undef_macro_wrappers.h
blob0ab5c28f9a09025c7b19892b21bcae34b51b41e2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * vim: sw=4 ts=4 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 /*
9 * This header is the "anti-header" for mozalloc_macro_wrappers.h.
10 * Including it undefines all the macros defined by
11 * mozalloc_macro_wrappers.h.
14 #ifndef mozilla_mozalloc_macro_wrappers_h
15 # error "mozalloc macro wrappers haven't been defined"
16 #endif
19 * This allows the wrappers to be redefined by including
20 * mozalloc_macro_wrappers.h again
22 #undef mozilla_mozalloc_macro_wrappers_h
24 #undef free
25 #undef malloc
26 #undef calloc
27 #undef realloc
28 #undef strdup
30 #if defined(HAVE_STRNDUP)
31 # undef strndup
32 #endif
34 #if defined(HAVE_POSIX_MEMALIGN)
35 # undef posix_memalign
36 #endif
38 #if defined(HAVE_MEMALIGN)
39 # undef memalign
40 #endif
42 #if defined(HAVE_VALLOC)
43 # undef valloc
44 #endif