Add explicit declaration of gets in C++ code

This commit is contained in:
Ulrich Drepper 2012-01-07 10:37:50 -05:00
parent df78418ad7
commit 28926a1be1
5 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2012-01-07 Ulrich Drepper <drepper@gmail.com>
* elf/tst-unique3.cc: Add explicit declaration of gets.
* elf/tst-unique3lib.cc: Likewise.
* elf/tst-unique3lib2.cc: Likewise.
* elf/tst-unique4.cc: Likewise.
* string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
2012-01-03 Ulrich Drepper <drepper@gmail.com>

View File

@ -1,4 +1,6 @@
#include "tst-unique3.h"
extern char *gets (char *);
#include <cstdio>
#include "../dlfcn/dlfcn.h"

View File

@ -1,3 +1,5 @@
extern char *gets (char *);
#include <cstdio>
#include "tst-unique3.h"
template<typename T> int S<T>::i = 1;

View File

@ -1,3 +1,5 @@
extern char *gets (char *);
#include <cstdio>
#include "tst-unique3.h"

View File

@ -1,5 +1,7 @@
// BZ 12511
#include "tst-unique4.h"
extern char *gets (char *);
#include <cstdio>
static int a[24] =