1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# -ansi breaks <linux/joystick.h>
--- configure.in
+++ configure.in
@@ -133,7 +133,7 @@
if test "$enable_warnings" = yes ; then
case "$CC" in *gcc*)
AC_MSG_RESULT(enabling selected compiler warnings)
-CFLAGS="$CFLAGS -ansi -pedantic -Wall -Wno-implicit -Wno-long-long" ;;
+CFLAGS="$CFLAGS -Wall -Wno-implicit -Wno-long-long" ;;
*)
AC_MSG_RESULT(disabling warnings for non-gcc compiler) ;;
esac
--- loader.c
+++ loader.c
@@ -11,7 +11,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
static int mbc_table[256] =
{
--- main.c
+++ main.c
@@ -8,7 +8,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
#include <stdarg.h>
#include <signal.h>
--- path.c
+++ path.c
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
#ifdef ALT_PATH_SEP
#define SEP ';'
--- rckeys.c
+++ rckeys.c
@@ -4,7 +4,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
#include "defs.h"
#include "rc.h"
--- rcvars.c
+++ rcvars.c
@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
#include "defs.h"
#include "rc.h"
--- sys/linux/fbdev.c
+++ sys/linux/fbdev.c
@@ -10,7 +10,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
#include <unistd.h>
#include <sys/mman.h>
#include <linux/fb.h>
--- sys/linux/joy.c
+++ sys/linux/joy.c
@@ -2,7 +2,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-char *strdup();
#include <linux/joystick.h>
#include <sys/types.h>
#include <sys/stat.h>
--- sys/oss/oss.c
+++ sys/oss/oss.c
@@ -2,7 +2,6 @@
#include <stdlib.h>
#include <string.h>
-char *strdup();
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
|