summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-03-30 14:32:27 +0000
committerBruno Haible <bruno@clisp.org>2003-03-30 14:32:27 +0000
commitd51ed07a8009457f385fc81fdf2c825f7175dd28 (patch)
tree2562322c680f2d855c4a21e86499fa31cf3e59ee /src
parente66e3563dd0f9370b298c35a0aefda2d8ed70691 (diff)
downloadgperf-d51ed07a8009457f385fc81fdf2c825f7175dd28.tar.gz
Portability to old compilers (such as MSVC).
Diffstat (limited to 'src')
-rw-r--r--src/search.cc2
1 files changed, 2 insertions, 0 deletions
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 <limits.h> /* 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