diff options
Diffstat (limited to 'def.h')
-rw-r--r-- | def.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -38,6 +38,11 @@ in this Software without prior written authorization from The Open Group. #include <fcntl.h> #include <sys/stat.h> +#ifndef HAVE_REALLOCARRAY +#define reallocarray(ptr, num, size) realloc(ptr, (num) * (size)) +#endif +#define mallocarray(num, size) reallocarray(NULL, num, size) + #define MAXDEFINES 512 #define MAXFILES 2048 #define MAXINCFILES 128 /* "-include" files */ |