[pypy-issue] Issue #2492: _minimal_curses incompatible with rsdl (pypy/pypy)
issues-reply at bitbucket.org
Thu Mar 9 11:43:04 EST 2017
New issue 2492: _minimal_curses incompatible with rsdl
`minimal_curses` [includes `term.h`](https://bitbucket.org/pypy/pypy/src/74eb11789df3e448b5f29b40d7e8b9bac176c631/pypy/module/_minimal_curses/fficurses.py) which defines a macro called `buttons`.
rsdl ([on `sdl2` branch](https://bitbucket.org/pypy/rsdl/src/fb9abd552d07850ba831cbebebced073817b3398/rsdl/eci.py)) includes SDL.h which includes `SDL_messagebox.h`.
Unfortunately, [`SDL_messagebox.h` contains `... *buttons`](https://hg.libsdl.org/SDL/file/a364af650bf1/include/SDL_messagebox.h#l100) and since all headers are globally included, the macro defined by `term.h` is incorrectly applied to `SDL_messagebox.h` which causes a syntax/compilation error.
It'd be great if `term.h`'s includes could be isolated.
More information about the pypy-issue