Discussion:
Use of undefined macro in libc-config.h
(too old to reply)
Tim Rühsen
2017-09-12 10:37:23 UTC
Permalink
Raw Message
MinGW tells me


In file included from ../lib/glob.h:24:0,
from options.c:50:
../lib/libc-config.h:49:65: warning: "__GNUC_MINOR" is not defined [-Wundef]
# define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <=
__GNUC_MINOR))
^
../lib/cdefs.h:41:6: note: in expansion of macro '__GNUC_PREREQ'
# if __GNUC_PREREQ (4, 6) && !defined _LIBC
^~~~~~~~~~~~~

The fix seems trivial, but I am unsure *why* __GNUC_MINOR isn't defined.
I would expect that from any gcc derivative (x86_64-w64-mingw32-gcc / -cpp).

What do you say ?

With Best Regards, Tim
Bruno Haible
2017-09-12 11:57:52 UTC
Permalink
Raw Message
Post by Tim Rühsen
I am unsure *why* __GNUC_MINOR isn't defined.
Because the right spelling is __GNUC_MINOR__ .

Bruno
Tim Rühsen
2017-09-12 12:09:36 UTC
Permalink
Raw Message
Post by Bruno Haible
Post by Tim Rühsen
I am unsure *why* __GNUC_MINOR isn't defined.
Because the right spelling is __GNUC_MINOR__ .
Bruno
Just saw this as well... patch attached

With Best Regards, Tim
Bruno Haible
2017-09-12 12:29:17 UTC
Permalink
Raw Message
Post by Tim Rühsen
Just saw this as well... patch attached
Thanks. Pushed.

Loading...