summaryrefslogtreecommitdiff
path: root/media-sound/streamripper/files/streamripper-1.64.6-fix-c99.patch
blob: 60fb15da94330610eab0ee0dca66deebc90602a6 (plain)
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
We live in modern world and have ANSI C here. Plus, nothing defines ANSI_PROTOTYPES
Include unconditionally

Closes: https://bugs.gentoo.org/713314
Closes: https://bugs.gentoo.org/896432
--- a/lib/argv.c
+++ b/lib/argv.c
@@ -52,25 +52,10 @@
 
 /*  Routines imported from standard C runtime libraries. */
 
-#ifdef ANSI_PROTOTYPES
-
 #include <stddef.h>
 #include <string.h>
 #include <stdlib.h>
 
-#else	/* !ANSI_PROTOTYPES */
-
-#if !defined _WIN32 || defined __GNUC__
-extern char *memcpy ();		/* Copy memory region */
-extern int strlen ();		/* Count length of string */
-extern char *malloc ();		/* Standard memory allocater */
-extern char *realloc ();	/* Standard memory reallocator */
-extern void free ();		/* Free malloc'd memory */
-extern char *strdup ();		/* Duplicate a string */
-#endif
-
-#endif	/* ANSI_PROTOTYPES */
-
 
 #ifndef NULL
 #define NULL 0
--- a/lib/ripstream.c
+++ b/lib/ripstream.c
@@ -714,7 +714,7 @@
     char bigbuf[HEADER_SIZE] = "";
     ID3V2frame id3v2frame;
 #ifndef WIN32
-    __uint32_t framesize = 0;
+    uint32_t framesize = 0;
 #else
     unsigned long int framesize = 0;
 #endif