Re: [patch] FOX 1.7.84 -> 1.7.85: Regression in FXObject.h

Jeroen van der Zijp <[email protected]> Sat, 24 Aug 2024 08:33:02 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization FOX Toolkit
Message-ID <[email protected]>
On Sat, 24 Aug 2024 04:52:22 -0400
"Jason E. Hale" <[email protected]> wrote:

> When FXObject.h is simply included, builds fail in projects such as
> gogglesmm [1]. In 1.7.85, the inclusion of FXMetaClass.h was removed
> from FXObject.h, causing the compiler to no longer recognize
> FXSelector as a type in the FX namespace.
> 
> Example error from trying to build gogglesmm with LLVM 18.1.6 on
> FreeBSD-CURRENT:
> /usr/local/include/fox-1.7/FXObject.h:135:3: fatal error: no type
> named 'FXSelector' in namespace 'FX'
>   135 |   FXDECLARE(FXObject)
>       |   ^~~~~~~~~~~~~~~~~~~
> /usr/local/include/fox-1.7/FXObject.h:50:28: note: expanded from macro
> 'FXDECLARE'
>    50 |    struct FXMapEntry { FX::FXSelector keylo; FX::FXSelector
> keyhi; long (classname::* func)(FX::FXObject*,FX::FXSelector,void*);
> }; \
>       |                        ~~~~^
> 
> I've attached a patch to fix the issue and in case the ML scrubs
> attachments, the patch can also be found here:
> https://people.freebsd.org/~jhale/patches/fox-1.7.85-include-FXObject.h.diff
> 
> [1] https://github.com/gogglesmm/gogglesmm

Thanks, fixed that!

  -- JVZ