News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

wxContribItems duplicate block in header files

Started by Wkerry, January 01, 2025, 07:57:13 AM

Previous topic - Next topic

Wkerry

In allot of the wxContribItems header files the following block is duplicated in the header files that seems redundant if the code was changed to use the wxwidgets wx/dlimpexp.h header file:

#ifdef __WXMSW__
    #ifndef DLLEXPORT
        #define DLLEXPORT __declspec (dllexport)
    #endif
#else
    #define DLLEXPORT
#endif

The wx/dlimpexp.h has support for WXEXPORT and WXIMPORT for all of the supported platforms and makes the code easier to read if it was changed to use these instead of the DLLEXPORT in the block above.