# HG changeset patch # User jwe # Date 811756823 0 # Node ID 7f008dfdc5a510e4391e8650729c57d224db4c21 # Parent 2f85a175308f9c1c13e9fa4e330a89eff3ae7253 [project @ 1995-09-22 07:59:09 by jwe] diff --git a/src/input.h b/src/input.h --- a/src/input.h +++ b/src/input.h @@ -69,10 +69,7 @@ // A line of input. extern char *current_input_line; -extern "C" -{ char *gnu_readline (const char *s); -} #endif diff --git a/src/sysdep.cc b/src/sysdep.cc --- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -633,7 +633,6 @@ } #if !defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H) -extern "C" int gethostname (char *name, int namelen) { diff --git a/src/sysdep.h b/src/sysdep.h --- a/src/sysdep.h +++ b/src/sysdep.h @@ -32,7 +32,9 @@ extern char *octave_getcwd (char *, int); extern int octave_chdir (const char *); -extern "C" int gethostname (); +#if !defined (HAVE_GETHOSTNAME) && defined (HAVE_SYS_UTSNAME_H) +extern int gethostname (); +#endif // Octave's idea of infinity. extern double octave_Inf;