autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#ifndef BIGENDIAN #undef BIGENDIAN ?


From: Kai Noda
Subject: #ifndef BIGENDIAN #undef BIGENDIAN ?
Date: Sun, 26 Feb 2017 15:10:35 +0800

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

野田  開 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]