[MOAB-dev] r3255 - in MOAB/trunk: . m4 parallel refiner tools tools/iMesh tools/mbcoupler tools/mbzoltan

Jed Brown jed at 59A2.org
Mon Nov 2 14:35:40 CST 2009


kraftche at cae.wisc.edu wrote:
>     - Otherwise do old #undef games so that at least the C
>         API is usable.

Recall that you may as well just #undef so that the stdio SEEK_* macros
are obviously broken; as it is, they are just redefined to MB_SEEK_*
which you have left undefined.  (Macro expansion doesn't occur at the
#define statement, it occurs when the macro is actually used.  Leaving
MB_SEEK_* defined doesn't fix the problem either because the
preprocessor does not do double expansion.  Pretending to save and
restore the values is just deceptive.)

Alternatively, you could hard-code the integers 0,1,2.  (On my system,
Tk, Tcl, zlib, and kernel headers all do this, so it may be reliable.)

Jed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20091102/721e4c30/attachment.pgp>


More information about the moab-dev mailing list