pjs/tools/leaky/config.h

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

1999-05-14 20:32:07 +04:00
// The contents of this file are subject to the Mozilla Public License
// Version 1.0 (the "License"); you may not use this file except in
// 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___
#define MAX_STACK_CRAWL 30
#include <malloc.h>
#ifdef linux
#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___ */