I was compiling fltk widgets (fltk.org) &
I came accross error while using C++BuilderX
[personal edition]
Borland compiler / windows environment [ c32]
I reported this error to to fltk developers.
-------------------------------------
File fl_get_system_colors.cxx
45 #if defined(__APPLE__) && defined(__MWERKS__)
46 extern "C" int putenv(const char*);
47 #endif
"Fl_get_system_colors.cxx": E2322 Incorrect number format at line 45
"Fl_get_system_colors.cxx": E2188 Expression syntax at line 45
----------------
This sorted out by midifying source code as follows
#if defined(__APPLE__)
#if defined(__MWERKS__)
extern "C" int putenv(const char*);
#endif // __MWERKS__
#endif // __APPLE__
This makes fltk compatible with C++BuilderX compilers
--------------------------------------------
Reply from fltk developers [ Michael Sweet <mi...@easysw.com>] .......
We WILL NOT make changes like this to support a buggy compiler.
Report this as a serious bug to the Borland folks since the preprocessor
syntax is required by the C and C++ standards!
====================
Can someone help me?
C D Tamhankar