summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--src/include/lib.h2
-rw-r--r--src/preproc/grn/hdb.cc2
-rw-r--r--src/preproc/grn/hgraph.cc5
4 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fa74b9f4..f6527d76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-03-11 Werner LEMBERG <wl@gnu.org>
+
+ * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
+ compilers silent.
+ * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
+ * src/include/lib.h: Remove some spaces.
+
2000-03-10 Werner LEMBERG <wl@gnu.org>
* src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
@@ -544,7 +551,7 @@
grolj4: Paper size will be searched case-insensitively.
- * grolj4/lib.h: Add check for strcasecmp().
+ * include/lib.h: Add check for strcasecmp().
* grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
* configure.in: Check for strcasecmp().
diff --git a/src/include/lib.h b/src/include/lib.h
index 8635802f..a9208c7d 100644
--- a/src/include/lib.h
+++ b/src/include/lib.h
@@ -58,7 +58,7 @@ inline int illegal_input_char(int c)
}
#ifndef HAVE_STRCASECMP
-# define strcasecmp(a,b) strcmp((a),(b))
+#define strcasecmp(a,b) strcmp((a),(b))
#endif
#ifdef HAVE_CC_LIMITS_H
diff --git a/src/preproc/grn/hdb.cc b/src/preproc/grn/hdb.cc
index 1d860aae..e5d8a4ed 100644
--- a/src/preproc/grn/hdb.cc
+++ b/src/preproc/grn/hdb.cc
@@ -247,6 +247,8 @@ DBGetType(register char *s)
default:
fatal("unknown element type");
}
+
+ return 0; /* never reached */
}
#ifdef UW_FASTSCAN
diff --git a/src/preproc/grn/hgraph.cc b/src/preproc/grn/hgraph.cc
index 4e153a9d..dc408b81 100644
--- a/src/preproc/grn/hgraph.cc
+++ b/src/preproc/grn/hgraph.cc
@@ -6,6 +6,11 @@
#include "gprint.h"
+#ifndef MATH_H_DECLARES_HYPOT
+extern "C" {
+ double hypot(double, double);
+}
+#endif
#define MAXVECT 40
#define MAXPOINTS 200