httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: bitlength for enums: portable?
Date Fri, 01 May 1998 09:02:56 GMT

In article <Pine.LNX.3.96dg4.980430123638.20143A-100000@twinlark.arctic.org> you wrote:

> #if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 7 || defined(NEXT)
> #define ap_inline
> #define __attribute__(__x)
> #define ENUM_BITFIELD(e,n,w)  signed int n : w
> #else
> #define ap_inline __inline__
> #define USE_GNU_INLINE
> #define ENUM_BITFIELD(e,n,w)  e n : w
> #endif

Ok, I've used this variant because I dislike local patches and
it seems useful to have such a define. Thanks, Dean.

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message