From d51ed07a8009457f385fc81fdf2c825f7175dd28 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Mar 2003 14:32:27 +0000 Subject: [PATCH] Portability to old compilers (such as MSVC). --- ChangeLog | 2 ++ src/search.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index ae96aae..6c21729 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2002-12-10 Bruno Haible + * src/search.cc (for): Define so as to avoid errors with old compilers. + * src/options.h (SHAREDLIB): New enum value. * src/options.cc (Options::short_usage): Mention option -P. (Options::long_usage): Document option -P. diff --git a/src/search.cc b/src/search.cc index 8fc1f7c..cb98457 100644 --- a/src/search.cc +++ b/src/search.cc @@ -31,6 +31,8 @@ #include /* defines INT_MIN, INT_MAX, UINT_MAX */ #include "options.h" #include "hash-table.h" +/* Assume ISO C++ 'for' scoping rule. */ +#define for if (0) ; else for /* The most general form of the hash function is