Add #undef for index and rindex.
This commit is contained in:
parent
99d7a69de1
commit
5750ebd89f
1 changed files with 7 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue