* src/conf_post.h: Use unsigned it for bool_bf if GNUSTEP.

Fixes: debbugs:16210
This commit is contained in:
Jan Djärv 2013-12-23 13:07:46 +01:00
parent 44fdad1ceb
commit 30143e3d9b
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2013-12-23 Jan Djärv <jan.h.d@swipnet.se>
* conf_post.h: Use unsigned it for bool_bf if GNUSTEP (Bug#16210).
2013-12-23 Glenn Morris <rgm@gnu.org>
* lread.c (Fload): Mention load-prefer-newer in doc.

View file

@ -34,8 +34,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include <stdbool.h>
/* The pre-C99 <stdbool.h> emulation doesn't work for bool bitfields. */
#if __STDC_VERSION__ < 199901
/* The pre-C99 <stdbool.h> emulation doesn't work for bool bitfields.
Nor does compiling Objective-C with standard GCC. */
#if __STDC_VERSION__ < 199901 || NS_IMPL_GNUSTEP
typedef unsigned int bool_bf;
#else
typedef bool bool_bf;