Testing WORDS_BIGENDIAN define in NetCDF source

Ed,

A fairly minor thing: In NetCDF 3.6.1 in ncx.c some code does:

#ifdef WORDS_BIGENDIAN

while other code does:

#if WORDS_BIGENDIAN

Might I suggest searching for all instances of 'WORDS_BIGENDIAN' and
using the #ifdef test.  If one did a #define WORDS_BIGENDIAN 0 they
would get something quite broken obviously. :)  Also, gcc gives a
warning (with -Wundef) if #if is used with something undefined.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean@xxxxxxxxxxxxxxxxxx
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================