summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/libiberty/argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/libiberty/argv.c')
-rw-r--r--gnu/usr.bin/binutils/libiberty/argv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/libiberty/argv.c b/gnu/usr.bin/binutils/libiberty/argv.c
index 40582abe408..316400f32bb 100644
--- a/gnu/usr.bin/binutils/libiberty/argv.c
+++ b/gnu/usr.bin/binutils/libiberty/argv.c
@@ -41,12 +41,14 @@ extern char *strdup (const char *s); /* Non-ANSI */
#else /* !__STDC__ */
+#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 /* __STDC__ */