| 1 | /***************************************************************************** |
| 2 | * Copyright (c) 2018 Matt Tropiano |
| 3 | * All rights reserved. This source and the accompanying materials |
| 4 | * are made available under the terms of the GNU Lesser Public License v2.1 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html |
| 7 | *****************************************************************************/ |
| 8 | |
| 9 | #ifndef __WADCONFIG_H__ |
| 10 | #define __WADCONFIG_H__ |
| 11 | |
| 12 | // Configuration for memory management in other systems. |
| 13 | |
| 14 | #ifndef WAD_MALLOC |
| 15 | #define WAD_MALLOC(s) malloc((s)) |
| 16 | #endif |
| 17 | |
| 18 | #ifndef WAD_FREE |
| 19 | #define WAD_FREE(s) free((s)) |
| 20 | #endif |
| 21 | |
| 22 | #ifndef WAD_REALLOC |
| 23 | #define WAD_REALLOC(p,s) realloc((p),(s)) |
| 24 | #endif |
| 25 | |
| 26 | #ifndef WAD_CALLOC |
| 27 | #define WAD_CALLOC(n,s) calloc((n),(s)) |
| 28 | #endif |
| 29 | |
| 30 | #endif |