Kai Noda
2017-02-26 07:10:35 UTC
Hi all,
I don't quite understand this piece of code:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blobdiff;f=lib/autoconf/c.m4;h=51fdfeba68fffe7f6f5638eaeef00149ed168282;hp=ffaa06e39dff758a24618a8f6504b22103caefac;hb=b0e687ef42e21b1eb7af18c4eaebcd41b0bd5632;hpb=883c8994f1efdc3c550b0d37bf95c947881b735d
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
What was it supposed to achieve? Should it not be either of these two?
#ifndef WORDS_BIGENDIAN
**#define** WORDS_BIGENDIAN
or
**#ifdef** WORDS_BIGENDIAN
#undef WORDS_BIGENDIAN
Please disregard if I missed something elementary. I'm not literate in m4.
I just tried to use AC_C_BIGENDIAN for my project and was startled to
see its output.
Regards,
Kai
野田 開 <***@gmail.com>
I don't quite understand this piece of code:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blobdiff;f=lib/autoconf/c.m4;h=51fdfeba68fffe7f6f5638eaeef00149ed168282;hp=ffaa06e39dff758a24618a8f6504b22103caefac;hb=b0e687ef42e21b1eb7af18c4eaebcd41b0bd5632;hpb=883c8994f1efdc3c550b0d37bf95c947881b735d
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
What was it supposed to achieve? Should it not be either of these two?
#ifndef WORDS_BIGENDIAN
**#define** WORDS_BIGENDIAN
or
**#ifdef** WORDS_BIGENDIAN
#undef WORDS_BIGENDIAN
Please disregard if I missed something elementary. I'm not literate in m4.
I just tried to use AC_C_BIGENDIAN for my project and was startled to
see its output.
Regards,
Kai
野田 開 <***@gmail.com>