Commit 51885bd1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Cleaned up header file inclusion.

parent 744f7d6f
/*
* $Id: zmalloc.c,v 1.8 1993/10/11 19:27:23 linus Exp $
* $Id: zmalloc.c,v 1.9 1993/10/12 16:20:58 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -48,39 +48,24 @@
*/
static char *rcsid = "$Id: zmalloc.c,v 1.8 1993/10/11 19:27:23 linus Exp $";
static char *rcsid = "$Id: zmalloc.c,v 1.9 1993/10/12 16:20:58 ceder Exp $";
#ifndef __vax__
#include <stddef.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#else
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
# include <stdlib.h>
#endif
#if STDC_HEADERS || HAVE_STRING_H
#include <string.h>
#if !STDC_HEADERS && HAVE_MEMORY_H
#include <memory.h>
#endif
/*#define index strchr*/
/*#define rindex strrchr*/
/*#define bcopy(s, d, n) memcpy ((d), (s), (n))*/
/*#define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))*/
/*#define bzero(s, n) memset ((s), 0, (n))*/
# include <string.h>
# if !STDC_HEADERS && HAVE_MEMORY_H
# include <memory.h>
# endif
#else /* not STDC_HEADERS and not HAVE_STRING_H */
#include <strings.h>
/* memory.h and strings.h conflict on some systems. */
# include <strings.h>
/* memory.h and strings.h conflict on some systems. */
#endif /* not STDC_HEADERS and not HAVE_STRING_H */
#include "compiler.h"
#ifdef __vax__
#define __SIZE_T is defined in string.h
#endif
#include "zmalloc.h"
#include "rcs.h"
USE(rcsid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment