Skip to content
Snippets Groups Projects
Commit 02e53f43 authored by slevy's avatar slevy
Browse files

Include malloc.h if system has it.

parent 42336719
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,9 @@ extern "C" { ...@@ -28,7 +28,9 @@ extern "C" {
#if CAVE #if CAVE
/* Shared memory definitions */ /* Shared memory definitions */
#include <malloc.h> /* for amalloc() */ #ifdef HAVE_MALLOC_H
# include <malloc.h> /* for amalloc() */
#endif
#define NewN(type, count) (type *)shmalloc((count) * sizeof(type)) #define NewN(type, count) (type *)shmalloc((count) * sizeof(type))
#define RenewN(p,type,count) (type *)shmrealloc(p, (count) * sizeof(type)) #define RenewN(p,type,count) (type *)shmrealloc(p, (count) * sizeof(type))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment