summaryrefslogtreecommitdiff
path: root/libf2c/libF77
diff options
context:
space:
mode:
authorburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-17 08:21:44 +0000
committerburley <burley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-17 08:21:44 +0000
commit90053ad86486b9b8f3cc0be42bb8c06eef49e55a (patch)
tree9269dd7802645654339d53efad0c4d3a59fca911 /libf2c/libF77
parent7abc3ef8035ad757d1b1e3fae5b3d82354f1c6ab (diff)
downloadgcc-90053ad86486b9b8f3cc0be42bb8c06eef49e55a.tar.gz
Update libg2c to netlib f2c-19990317
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libf2c/libF77')
-rw-r--r--libf2c/libF77/F77_aloc.c6
-rw-r--r--libf2c/libF77/README.netlib4
-rw-r--r--libf2c/libF77/dtime_.c5
-rw-r--r--libf2c/libF77/etime_.c5
-rw-r--r--libf2c/libF77/signal1.h06
5 files changed, 22 insertions, 4 deletions
diff --git a/libf2c/libF77/F77_aloc.c b/libf2c/libF77/F77_aloc.c
index 8754fe2ef70..e329a1bfb34 100644
--- a/libf2c/libF77/F77_aloc.c
+++ b/libf2c/libF77/F77_aloc.c
@@ -14,7 +14,13 @@ extern void G77_exit_0 ();
F77_aloc(Len, whence) integer Len; char *whence;
#else
#include <stdlib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
extern void G77_exit_0 (integer*);
+#ifdef __cplusplus
+ }
+#endif
char *
F77_aloc(integer Len, char *whence)
diff --git a/libf2c/libF77/README.netlib b/libf2c/libF77/README.netlib
index 76682152551..5e532ee0990 100644
--- a/libf2c/libF77/README.netlib
+++ b/libf2c/libF77/README.netlib
@@ -106,3 +106,7 @@ one-line shell script
or (on some systems)
exec /usr/bin/ar lts $1 >/dev/null
+
+If your compiler complains about the signal calls in main.c, s_paus.c,
+and signal_.c, you may need to adjust signal1.h suitably. See the
+comments in signal1.h.
diff --git a/libf2c/libF77/dtime_.c b/libf2c/libF77/dtime_.c
index 95db94f4874..09755fc586f 100644
--- a/libf2c/libF77/dtime_.c
+++ b/libf2c/libF77/dtime_.c
@@ -1,4 +1,9 @@
#include "time.h"
+
+#ifdef MSDOS
+#define USE_CLOCK
+#endif
+
#ifndef USE_CLOCK
#define _INCLUDE_POSIX_SOURCE /* for HP-UX */
#define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
diff --git a/libf2c/libF77/etime_.c b/libf2c/libF77/etime_.c
index 7ed3fce6b27..043bf6996f3 100644
--- a/libf2c/libF77/etime_.c
+++ b/libf2c/libF77/etime_.c
@@ -1,4 +1,9 @@
#include "time.h"
+
+#ifdef MSDOS
+#define USE_CLOCK
+#endif
+
#ifndef USE_CLOCK
#define _INCLUDE_POSIX_SOURCE /* for HP-UX */
#define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
diff --git a/libf2c/libF77/signal1.h0 b/libf2c/libF77/signal1.h0
index 662cae450dc..a383774b82d 100644
--- a/libf2c/libF77/signal1.h0
+++ b/libf2c/libF77/signal1.h0
@@ -3,6 +3,8 @@
/* compiler-dependent. The #define below assumes signal.h declares */
/* type SIG_PF for the signal function's second argument. */
+/* For some C++ compilers, "#define Sigarg_t ..." may be appropriate. */
+
#include <signal.h>
#ifndef Sigret_t
@@ -12,12 +14,8 @@
#ifdef KR_headers
#define Sigarg_t
#else
-#ifdef __cplusplus
-#define Sigarg_t ...
-#else
#define Sigarg_t int
#endif
-#endif
#endif /*Sigarg_t*/
#ifdef USE_SIG_PF /* compile with -DUSE_SIG_PF under IRIX */