From: Peter K. <syn...@gm...> - 2010-07-29 09:48:22
|
D. V. Wiebe wrote: > On Wed, Jul 28, 2010 at 06:47:15PM +0200, Peter K?mmel wrote: >> MSVC doesn't support C99, so I'm forced to use the macro GETDATA_C89_API. >> >> To test if GETDATA_C89_API is fully supported I simply defined it in the >> generated getdata.h when compiling with gcc. But there where are many errors. >> >> Therefore my question: Is GETDATA_C89_API fully supported? >> >> Peter > > Unfortunately, building GetData requires a somewhat C99-compliant compiler. > > The GETDATA_C89_API macro only affects the public header file and is intended > for code linking to libgetdata. (Including, GetData's own C++ bindings, since > C++-98 isn't ABI compatible with FORTRAN-style complex data.) OK, then I misunderstood the macro. > > I think the C99 only features that GetData makes use of are: > * complex math (complex.h) > * standard types (inttypes.h) > > and then some things which most C compilers already did: > * // comments > * long long int > * intermixing of variable declarations and code > * __VAR_ARGS__ CPP macros > > The standard types stuff can be sorted by autotools. The complex math > would be trickier, but I think it could be done. I can add "C89-ise" to > the TODO. > > Does kst even support complex data? The easy solution might be to have > a C89 build of GetData which just ifdef out the complex math parts. If > MSVC has partial C99 support, maybe we can work around the parts it's > missing? Before fiddling around with MS's obsolete compiler I would prefer to compile all with C++. See next mail. Peter > > Let me know what you need, > -dvw |