]> git.gag.com Git - fw/sdcc/commitdiff
* support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 7 Nov 2003 06:25:14 +0000 (06:25 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Fri, 7 Nov 2003 06:25:14 +0000 (06:25 +0000)
  as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
  malloc is declared in standard stdlib.h

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2996 4a8a32a2-be11-0410-ad9d-d568d2c75423

as/hc08/lklibr.c
as/mcs51/lklibr.c
as/z80/aslist.c
as/z80/assym.c
support/Util/NewAlloc.c

index 2481d9f02a8e312f005e6bdf83a2467b82b453bf..74c8c361b251dfa16bff3a32e91d4215f732b912 100644 (file)
 #define EQ(A,B) !strcmp((A),(B))
 #define MAXLINE 254 /*when using fgets*/
 
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 2e9bfe437bafd7e04406e137c451504b21327603..678eb30301ca9a25e15f59456a62dcb33f7aafc4 100644 (file)
 #define EQ(A,B) !strcmp((A),(B))
 #define MAXLINE 254 /*when using fgets*/
 
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 997bb4c9b91747ed7bcbf210b8eb94348ab285c6..8fc6653569957aed7a09e42ab00719835ab0d215 100644 (file)
 #include <setjmp.h>
 #include <string.h>
 #include <stdlib.h>
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 
 
 #include "asm.h"
index 3a9ac0a4c2337e7c10670e4be3d47cd62a76c982..04cbc7da501abfc14679ee70123e6b43bccec494 100644 (file)
 #include <setjmp.h>
 #include <string.h>
 #include <stdlib.h>
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/types.h>
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 #include "asm.h"
 
 /*)Module      assym.c
index 86e78e430c798072a34b23fc7e013550c875c249..fb8a180aa75fae876c356533e4bcfa6c554424ba 100644 (file)
@@ -28,13 +28,6 @@ functions.
 */
 
 #include <stdio.h>
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/malloc.h>
-#else
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-#endif
 #include <stdlib.h>
 #include <string.h>
 #include <memory.h>