|
From: Mats B. <mat...@ho...> - 2005-07-25 08:13:46
|
When building a C++ widget I had to change generic/widget.h from:
struct WidgetSpec_
{
....
enum { WIDGET_SPEC_END } sentinel; /* to help the compiler catch errors
*/
};
to:
typedef enum { WIDGET_SPEC_END } SentinelEnum; /* to help the compiler
catch errors */
struct WidgetSpec_
{
....
SentinelEnum sentinel; /* to help the compiler catch errors */
};
since in C++ WIDGET_SPEC_END gets "hidden" inside the struct due to
the more limited scope.
Mats
_________________________________________________________________
Hitta rätt på nätet med MSN Search http://search.msn.se/
|