The C-style definitions of SAL_CONST_CAST and SAL_STATIC_CAST

Stephan Bergmann sbergman at
Tue Apr 3 08:18:02 PDT 2012

On 04/03/2012 04:12 PM, Tor Lillqvist wrote:
> And why do we test the OS here anyway, shouldn't we be testing the
> compiler and perhaps compiler version?

We didn't have/know about such fancy macros back when the crude 
approximation OS => specific compiler worked oh so well for us.

> Should this be simplified to always expand to the C++-style casts, and
> then an Easy Hack added to do the expansion inline so that we can get
> rid of the then pointless macros?



More information about the LibreOffice mailing list