delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/05/11/13:09:27

From: pavenis AT lanet DOT lv
To: djgpp-workers AT delorie DOT com
Date: Fri, 11 May 2001 19:24:16 +0300
MIME-Version: 1.0
Subject: [PATCH] Add missing includes for gcc-3.0
Message-ID: <3AFC3C60.2012.A7493C@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

I'll try to send gcc-3.0 related patches once more splitting them by types

gcc-2.95.X and earlier compilers didn't notice that memcpy, strlen
and some similar functions doesn't have prototypes, it's no more so with
gcc-3.0

This patch adds missing #include statements

Andris

*** djgpp/src/debug/edebug/ed.c~3	Tue Oct 28 21:32:12 1997
--- djgpp/src/debug/edebug/ed.c	Fri May 11 18:04:46 2001
***************
*** 2,7 ****
--- 2,8 ----
  /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  #include <stdio.h>
  #include <string.h>
+ #include <stdlib.h>
  #include <unistd.h>
  #include "ed.h"
  #include "debug.h"
*** djgpp/src/libc/ansi/stdlib/qsort.c~3	Sun Sep 27 19:31:00 1998
--- djgpp/src/libc/ansi/stdlib/qsort.c	Fri May 11 17:40:02 2001
***************
*** 5,10 ****
--- 5,11 ----
  #include <assert.h>
  #include <stdio.h>
  #include <stdlib.h>
+ #include <string.h>
  
  /*
   * This is an implementation of quicksort that partitions the array
*** djgpp/src/libc/compat/stdio/mkstemp.c~3	Tue Aug 29 08:02:18 2000
--- djgpp/src/libc/compat/stdio/mkstemp.c	Fri May 11 17:41:28 2001
***************
*** 2,7 ****
--- 2,8 ----
  /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
  /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  #include <libc/symlink.h>
+ #include <string.h>
  #include <stdio.h>
  #include <fcntl.h>
  #include <errno.h>
*** djgpp/src/libc/compat/stdlib/rand48.c~3	Mon Jul 17 08:02:14 2000
--- djgpp/src/libc/compat/stdlib/rand48.c	Fri May 11 17:42:50 2001
***************
*** 8,14 ****
   *
   */
  
! #include "stdlib.h"
  
  #define RAND48_MULT0 (0xe66d)
  #define RAND48_MULT1 (0xdeec)
--- 8,15 ----
   *
   */
  
! #include <stdlib.h>
! #include <string.h>
  
  #define RAND48_MULT0 (0xe66d)
  #define RAND48_MULT1 (0xdeec)
*** djgpp/src/libc/compat/unistd/symlink.c~3	Thu Aug 17 08:01:44 2000
--- djgpp/src/libc/compat/unistd/symlink.c	Fri May 11 17:44:18 2001
***************
*** 8,13 ****
--- 8,14 ----
  #include <unistd.h>
  #include <io.h>
  #include <stdio.h>
+ #include <string.h>
  
  #include "xsymlink.h"
  
*** djgpp/src/libc/posix/unistd/access.c~3	Wed Aug 23 08:09:40 2000
--- djgpp/src/libc/posix/unistd/access.c	Fri May 11 18:00:56 2001
***************
*** 7,12 ****
--- 7,13 ----
  #include <libc/symlink.h>
  #include <unistd.h>
  #include <stdio.h>
+ #include <string.h>
  #include <sys/stat.h>
  #include <io.h>
  #include <dir.h>
*** djgpp/src/utils/texi2ps/word.c~3	Sat Feb 20 23:56:06 1999
--- djgpp/src/utils/texi2ps/word.c	Fri May 11 18:16:48 2001
***************
*** 20,25 ****
--- 20,26 ----
  
  #include <stdio.h>
  #include <stdlib.h>
+ #include <string.h>
  #include <time.h>
  #include "word.h"
  #include "ps.h"
*** djgpp/src/utils/bin2h.c~3	Thu Jun  3 20:27:40 1999
--- djgpp/src/utils/bin2h.c	Fri May 11 18:14:16 2001
***************
*** 3,8 ****
--- 3,9 ----
  /* 1998 -- Modified by Nils van den Heuvel (n DOT heuvel AT wxs DOT nl) */
  
  #include <stdio.h>
+ #include <stdlib.h>
  #include <fcntl.h>
  #include <sys/stat.h>
  #include <unistd.h>
*** djgpp/src/utils/djecho.c~3	Tue Aug 13 02:55:54 1996
--- djgpp/src/utils/djecho.c	Fri May 11 18:15:02 2001
***************
*** 1,6 ****
--- 1,7 ----
  /* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
  /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  #include <stdio.h>
+ #include <string.h>
  
  int
  main(int argc, char **argv)
*** djgpp/src/utils/djmerge.c~3	Sat Feb 24 07:01:20 2001
--- djgpp/src/utils/djmerge.c	Fri May 11 18:15:40 2001
***************
*** 5,10 ****
--- 5,12 ----
  #include <stdio.h>
  #include <fcntl.h>
  #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <utime.h>
*** djgpp/src/utils/djsplit.c~3	Sat Feb 24 07:01:20 2001
--- djgpp/src/utils/djsplit.c	Fri May 11 18:16:10 2001
***************
*** 5,10 ****
--- 5,11 ----
  #include <stdlib.h>
  #include <fcntl.h>
  #include <unistd.h>
+ #include <string.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <utime.h>
*** djgpp/src/utils/update.c~3	Wed Jul 12 12:27:14 1995
--- djgpp/src/utils/update.c	Fri May 11 18:17:14 2001
***************
*** 3,8 ****
--- 3,10 ----
  
  #include <stdio.h>
  #include <fcntl.h>
+ #include <stdlib.h>
+ #include <string.h>
  #include <unistd.h>
  #include <io.h>
  
*** djgpp/tests/libc/ansi/stdlib/shell.c~3	Sun Aug  6 02:19:46 1995
--- djgpp/tests/libc/ansi/stdlib/shell.c	Fri May 11 18:51:26 2001
***************
*** 1,6 ****
--- 1,7 ----
  #include <process.h>
  #include <stdio.h>
  #include <stdlib.h>
+ #include <string.h>
  
  int
  main(void)
*** djgpp/tests/libc/go32/fpu.c~3	Wed Sep  6 10:41:54 1995
--- djgpp/tests/libc/go32/fpu.c	Fri May 11 18:55:22 2001
***************
*** 1,5 ****
--- 1,6 ----
  #include <stdio.h>
  #include <signal.h>
+ #include <stdlib.h>
  #include <float.h>
  
  void
*** djgpp/tests/libc/go32/raise.c~3	Wed Sep  6 10:44:44 1995
--- djgpp/tests/libc/go32/raise.c	Fri May 11 18:55:44 2001
***************
*** 1,5 ****
--- 1,6 ----
  #include <stdio.h>
  #include <signal.h>
+ #include <stdlib.h>
  
  void
  sf(int x)
*** djgpp/tests/libc/pc_hw/hwint/enable.c~3	Thu Jan  1 19:59:38 1998
--- djgpp/tests/libc/pc_hw/hwint/enable.c	Fri May 11 19:03:38 2001
***************
*** 1,3 ****
--- 1,4 ----
+ #include <stdlib.h>
  #include <stdio.h>
  #include <dos.h>
  


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019