On solaris with gcc-4.3.1, the macro __cplusplus is not defined to
199711L. This is a long-standing issue with solaris. This doesn't much
matter on some platforms, but for matplotlib, what is happening to me
is that through a series of defines and conditionals, the method
putchar, as used here:

./ttconv/ttutil.cpp:void TTStreamWriter::putchar(int val)

gets tokenized by the preprocessor into putc by
/usr/include/iso/stdio_iso.h, here on line 350:

#define putchar(x)      putc((x), stdout)

This only happens if __cplusplus is < 199711L. I'm avoiding this by
building using the studio C compiler, but I thought I'd mention this
in case it's possible to detect this during the configuration stage,
and perhaps wrap with something like:

#ifdef
#if  __cplusplus <= 199711L
#undef putchar
#endif
#endif

However, I haven't tested this yet. Has anyone else thought about
this?

Thanks,

-Peter




-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to