wang-nima / snappy

Automatically exported from code.google.com/p/snappy
Other
0 stars 0 forks source link

Patch for /trunk/config.h.in #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the previous code read like this "if this is not defined, undefine it"

Original issue reported on code.google.com by geo...@empowerunited.com on 23 Mar 2011 at 7:34

Attachments:

GoogleCodeExporter commented 9 years ago
Actually, this code fragment comes from autoheader; it's autogenerated and not 
part of Snappy code per se. config.h.in is never used as-is; the #undef is just 
a placeholder that config.sub possibly replaces when it converts to config.h. 
Thus, as strange as it may sound, the code here is actually intentional, 
although you're right that it will never actually undefine WORDS_BIGENDIAN 
should it already be defined. Autoconf generally doesn't do that.

Original comment by se...@google.com on 23 Mar 2011 at 9:43