Print this page
remove support for non-ANSI compilation
@@ -17,14 +17,16 @@
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
+/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-
#ifndef _MALLOC_H
#define _MALLOC_H
#include <sys/types.h>
@@ -55,12 +57,10 @@
unsigned long uordblks; /* space in ordinary blocks in use */
unsigned long fordblks; /* space in free ordinary blocks */
unsigned long keepcost; /* cost of enabling keep option */
};
-#if defined(__STDC__)
-
#if (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
defined(_XPG3)
#if __cplusplus >= 199711L
namespace std {
#endif
@@ -81,21 +81,10 @@
#endif /* (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || ... */
int mallopt(int, int);
struct mallinfo mallinfo(void);
-#else
-
-void *malloc();
-void free();
-void *realloc();
-void *calloc();
-int mallopt();
-struct mallinfo mallinfo();
-
-#endif /* __STDC__ */
-
#ifdef __cplusplus
}
#endif
#endif /* _MALLOC_H */