aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/mmalloc.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-04-07 03:53:12 +0000
committerFred Fish <fnf@specifix.com>1992-04-07 03:53:12 +0000
commitaafba48f94ad8f13eaf87787f5fc7a8ab5b865af (patch)
tree3c6e8392fd6f6b3a2103723eb5f9bf535d02fd06 /mmalloc/mmalloc.h
parentad142b8e1f2e4d896e2131b5bbcef5acaa88f06a (diff)
downloadgdb-aafba48f94ad8f13eaf87787f5fc7a8ab5b865af.zip
gdb-aafba48f94ad8f13eaf87787f5fc7a8ab5b865af.tar.gz
gdb-aafba48f94ad8f13eaf87787f5fc7a8ab5b865af.tar.bz2
Get rid of include of <stdlib.h>, which is not guaranteed to be present
even when __STDC__ is defined. This also causes the ugly malloc/realloc/etc kludge to go away.
Diffstat (limited to 'mmalloc/mmalloc.h')
-rw-r--r--mmalloc/mmalloc.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/mmalloc/mmalloc.h b/mmalloc/mmalloc.h
index 6698501..db62f1d 100644
--- a/mmalloc/mmalloc.h
+++ b/mmalloc/mmalloc.h
@@ -26,21 +26,8 @@ Cambridge, MA 02139, USA.
#ifndef __MMALLOC_H
#define __MMALLOC_H 1
-/* Ugly kludge to work around problem with some vendors (Sun for example)
- that ship the ANSI <stdlib.h> file with non-ANSI compliant declarations
- for malloc(), realloc(), calloc(), and free(). Since we don't use
- these functions internally, but simply provide compatible replacements
- layered on top of the m* equivalents, just hide whatever definitions
- <stdlib.h> might supply. */
-
-#define malloc hide_malloc
-#define calloc hide_calloc
-#define realloc hide_realloc
-#define free hide_free
-
#ifdef __STDC__
# include <stddef.h>
-# include <stdlib.h>
# define PTR void *
# define CONST const
# define PARAMS(paramlist) paramlist
@@ -65,10 +52,6 @@ Cambridge, MA 02139, USA.
#undef realloc
#undef free
-#if defined(USG)
-# include <string.h>
-#endif
-
#ifndef MIN
# define MIN(A, B) ((A) < (B) ? (A) : (B))
#endif