Skip to content
Snippets Groups Projects
  • Simon McVittie's avatar
    a34c5c8b
    libsrt: Explicitly control symbol visibility · a34c5c8b
    Simon McVittie authored
    
    Instead of having symbols visible by default (which included
    compatibility symbols for older versions of GLib), hide them by default
    (equivalent to G_GNUC_INTERNAL) and export only what we need.
    
    This means we export the public API, plus symbols that are used by the
    unit tests or by the command-line diagnostic tools. Symbols used only
    by pressure-vessel do not need to be exported, since it links libsrt
    statically.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
    a34c5c8b
    History
    libsrt: Explicitly control symbol visibility
    Simon McVittie authored
    
    Instead of having symbols visible by default (which included
    compatibility symbols for older versions of GLib), hide them by default
    (equivalent to G_GNUC_INTERNAL) and export only what we need.
    
    This means we export the public API, plus symbols that are used by the
    unit tests or by the command-line diagnostic tools. Symbols used only
    by pressure-vessel do not need to be exported, since it links libsrt
    statically.
    
    Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
config.h.in 314 B
#define _SRT_COMPILATION
#define _GNU_SOURCE 1
#mesondefine VERSION

/* Allow using stuff from Flatpak with minimal modifications */
#define FLATPAK_EXTERN extern
#define _(s) s
#define C_(context, s) s
#define N_(s) s
#define NC_(s) s
#define Q_(s) g_strip_context (s, s)

#include "subprojects/libglnx/config.h"