aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-12-21 08:06:29 +0000
committerKarl Heuer1995-12-21 08:06:29 +0000
commit5750ebd89f7b384ef6a3b18e385625800be2a17b (patch)
tree1b3664a823921d06a97f228ed943056ae43504a7
parent99d7a69de15b1d67b8b73e61b44f849c93c56895 (diff)
downloademacs-5750ebd89f7b384ef6a3b18e385625800be2a17b.tar.gz
emacs-5750ebd89f7b384ef6a3b18e385625800be2a17b.zip
Add #undef for index and rindex.
-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. */
21#include <config.h> 21#include <config.h>
22#endif 22#endif
23 23
24/* Definitions of these in config.h can cause
25 declaration conflicts later on between declarations for index
26 and declarations for strchr. This file doesn't use
27 index and rindex, so cancel them. */
28#undef index
29#undef rindex
30
24#include <X11/Xatom.h> 31#include <X11/Xatom.h>
25#include <X11/IntrinsicP.h> 32#include <X11/IntrinsicP.h>
26#include <X11/ObjectP.h> 33#include <X11/ObjectP.h>