gecko-dev/tools/leaky/config.h

36 строки
1008 B
C
Исходник Обычный вид История

1999-05-14 20:32:07 +04:00
// The contents of this file are subject to the Mozilla Public License
// Version 1.1 (the "License"); you may not use this file except in
1999-05-14 20:32:07 +04:00
// compliance with the License. You may obtain a copy of the License
// at http://www.mozilla.org/MPL/
//
// Software distributed under the License is distributed on an "AS IS"
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
// the License for the specific language governing rights and
// limitations under the License.
//
// The Initial Developer of the Original Code is Kipp E.B. Hickman.
#ifndef config_h___
#define config_h___
1999-09-30 05:51:20 +04:00
#define MAX_STACK_CRAWL 200
1999-05-14 20:32:07 +04:00
#include <malloc.h>
#if defined(linux) || defined(NTO)
1999-05-14 20:32:07 +04:00
#define USE_BFD
#undef NEED_WRAPPERS
#define REAL_MALLOC(_x) __libc_malloc(_x)
#define REAL_REALLOC(_x,_y) __libc_realloc(_x,_y)
#define REAL_FREE(_x) __libc_free(_x)
extern "C" {
void* __libc_malloc(size_t);
void* __libc_realloc(void*, size_t);
void __libc_free(void*);
};
#endif /* linux */
#endif /* config_h___ */