2000-02-06 Ben Elliston <bje@redhat.com>

* config.guess: Include <stdio.h> when compiling test programs
	with a C++ compiler.  Function prototypes are mandatory in C++.
	From Ossama Othman <othman@cs.wustl.edu>.
This commit is contained in:
Ben Elliston 2000-02-06 12:12:16 +00:00
parent d1b7ebbaf6
commit 94968c5834
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2000-02-06 Ben Elliston <bje@redhat.com>
* config.guess: Include <stdio.h> when compiling test programs
with a C++ compiler. Function prototypes are mandatory in C++.
From Ossama Othman <othman@cs.wustl.edu>.
2000-02-03 Ben Elliston <bje@redhat.com>
* config.guess: Handle versions of DJGPP's uname(1) command which

3
config.guess vendored
View File

@ -291,6 +291,7 @@ EOF
mips:*:*:UMIPS | mips:*:*:RISCos)
sed 's/^ //' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
int main (int argc, char *argv[]) {
#else
int main (argc, argv) int argc; char *argv[]; {
@ -752,6 +753,7 @@ EOF
elif test "${UNAME_MACHINE}" = "mips" ; then
cat >$dummy.c <<EOF
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
int main (int argc, char *argv[]) {
#else
int main (argc, argv) int argc; char *argv[]; {
@ -788,6 +790,7 @@ EOF
cat >$dummy.c <<EOF
#include <features.h>
#ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */
int main (int argc, char *argv[]) {
#else
int main (argc, argv) int argc; char *argv[]; {