office-gobmx/config_host/config_options.h.in
Noel Grandin 621e162053 add UNLESS_MERGELIBS_MORE and use to reduce symbol visibility
Change-Id: I2e6c2dcd06c76e0f5f68a1debde3a20665104b27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164219
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-03-02 09:36:01 +01:00

40 lines
803 B
C

/*
* General configuration settings for various options.
*/
#ifndef CONFIG_OPTIONS_H
#define CONFIG_OPTIONS_H
#define ENABLE_MERGELIBS 0
#define ENABLE_MERGELIBS_MORE 0
#define ENABLE_RUNTIME_OPTIMIZATIONS 0
// Used to turn off visibility for some classes/symbols when linking with --enable-mergelibs
//
#if ENABLE_MERGELIBS
#define UNLESS_MERGELIBS(x)
#else
#define UNLESS_MERGELIBS(x) x
#endif
#if ENABLE_MERGELIBS
#define IF_MERGELIBS(x) x
#else
#define IF_MERGELIBS(x)
#endif
// Used to turn off visibility for some classes/symbols when linking with --enable-mergelibs=more
//
#if ENABLE_MERGELIBS_MORE
#define UNLESS_MERGELIBS_MORE(x)
#else
#define UNLESS_MERGELIBS_MORE(x) x
#endif
#if ENABLE_MERGELIBS_MORE
#define IF_MERGELIBS_MORE(x) x
#else
#define IF_MERGELIBS_MORE(x)
#endif
#endif