summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-utils.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-12-21 08:06:29 +0000
committerKarl Heuer <kwzh@gnu.org>1995-12-21 08:06:29 +0000
commit5750ebd89f7b384ef6a3b18e385625800be2a17b (patch)
tree1b3664a823921d06a97f228ed943056ae43504a7 /lwlib/lwlib-utils.c
parent99d7a69de15b1d67b8b73e61b44f849c93c56895 (diff)
downloademacs-5750ebd89f7b384ef6a3b18e385625800be2a17b.tar.gz
Add #undef for index and rindex.
Diffstat (limited to 'lwlib/lwlib-utils.c')
-rw-r--r--lwlib/lwlib-utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c
index 1164482e182..6949c87e21c 100644
--- a/lwlib/lwlib-utils.c
+++ b/lwlib/lwlib-utils.c
@@ -21,6 +21,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <config.h>
#endif
+/* Definitions of these in config.h can cause
+ declaration conflicts later on between declarations for index
+ and declarations for strchr. This file doesn't use
+ index and rindex, so cancel them. */
+#undef index
+#undef rindex
+
#include <X11/Xatom.h>
#include <X11/IntrinsicP.h>
#include <X11/ObjectP.h>