mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
f18d9822f1
Closes PR #2237. Submitted by: Pedro Giffuni <pgiffuni@FPS.biblos.unal.edu.co>
16 lines
306 B
Plaintext
16 lines
306 B
Plaintext
--- include/allocate.h.orig Fri Jan 10 20:11:30 1997
|
|
+++ include/allocate.h Fri Jan 10 20:10:54 1997
|
|
@@ -25,7 +25,12 @@
|
|
|
|
# ifndef _ALLOCATE_H
|
|
# define _ALLOCATE_H
|
|
+
|
|
+#ifdef __STDC__
|
|
+#include <stdlib.h>
|
|
+#else
|
|
# include "malloc.h"
|
|
+#endif
|
|
|
|
# define AllocNew(type) \
|
|
(type *) malloc (sizeof (type))
|