17 Feb
2023
17 Feb
'23
11:49 a.m.
On Wed, Feb 15, 2023 at 01:48:39PM -0600, Eric Blake wrote:
In my experience with GNU code (which this is not), the style I've seen there is to omit () whenever possible, as in:
#if defined __GNUC__
or even
#ifdef __GNUC__
I didn't know this was possible. I checked it. GCC and clang with -std=c89 and -std=c99 allow this, so I don't object. Although we don't support (eg) MSVC do you know if this is really standard C? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW