New issue 2492: _minimal_curses incompatible with rsdl
https://bitbucket.org/pypy/pypy/issues/2492/_minimal_curses-incompatible-with-rsdl

Fabio Niephaus:

`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.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to