On 2015-02-10 13:14-0500 Jim Dishaw wrote:

> Is the minimum supported compiler the C89 specification?  I would
like to use the offsetof() macro in the implementation of the revised
metafile I/O routines.  My goal is to define the data file format in a
variable and to support multiple versions for backwards compatibility.

Our actual minimum supported C version is C99 (since we already
use some C language constructs that were first introduced for C99).

According to the Linux man page offsetof is

CONFORMING TO
        C89, C99, POSIX.1-2001.

Therefore, using that macro should be fine since it would be a pretty
lame C compiler that didn't support C99, 14 years after the fact.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to