[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiling (development) Emacs with MSVC
From: |
Tom Tromey |
Subject: |
Re: Compiling (development) Emacs with MSVC |
Date: |
Wed, 05 Jan 2011 14:40:42 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Stefan> IIUC gcc uses something like
Stefan> ENUM_BF(Lisp_Misc_Type) tag : 3;
Stefan> where ENUM_BF(x) can either turn into "enum x" or "unsigned int"
Stefan> depending on whether the compiler supports unsigned bit fields.
gdb uses:
/* Be conservative and use enum bitfields only with GCC.
This is copied from gcc 3.3.1, system.h. */
#if defined(__GNUC__) && (__GNUC__ >= 2)
#define ENUM_BITFIELD(TYPE) enum TYPE
#else
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
GCC uses:
/* Be conservative and only use enum bitfields with GCC.
FIXME: provide a complete autoconf test for buggy enum bitfields. */
#if (GCC_VERSION > 2000)
#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE
#else
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
Tom