diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-11-27 13:33:43 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2019-11-27 13:33:43 +0000 |
commit | def700739d4f1884be25c63f9df32c583fe4418a (patch) | |
tree | b153cea8052a45d1985e5d9105107dea56d37844 /gtk/css | |
parent | 9f69c7f3e8809af6e97825ae5dd2191c6d4008fc (diff) | |
download | gtk+-def700739d4f1884be25c63f9df32c583fe4418a.tar.gz |
Use a single compilation symbol
We use a compilation symbol in our build to allow the inclusion of
specific headers while building GTK, to avoid the need to include only
the global header.
Each namespace has its own compilation symbol because we used to have
different libraries, and strict symbol visibility between libraries;
now that we have a single library, and we can use private symbols across
namespaces while building GTK, we should have a single compilation
symbol, and simplify the build rules.
Diffstat (limited to 'gtk/css')
-rw-r--r-- | gtk/css/gtkcssenums.h | 2 | ||||
-rw-r--r-- | gtk/css/gtkcssenumtypes.h.template | 2 | ||||
-rw-r--r-- | gtk/css/gtkcsslocation.h | 2 | ||||
-rw-r--r-- | gtk/css/gtkcsssection.h | 2 | ||||
-rw-r--r-- | gtk/css/meson.build | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/gtk/css/gtkcssenums.h b/gtk/css/gtkcssenums.h index 8674696b3a..a585ab2ae3 100644 --- a/gtk/css/gtkcssenums.h +++ b/gtk/css/gtkcssenums.h @@ -25,7 +25,7 @@ #ifndef __GTK_CSS_ENUMS_H__ #define __GTK_CSS_ENUMS_H__ -#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_CSS_COMPILATION) +#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only <gtk/css/gtkcss.h> can be included directly." #endif diff --git a/gtk/css/gtkcssenumtypes.h.template b/gtk/css/gtkcssenumtypes.h.template index f45dc261e7..53471b92c0 100644 --- a/gtk/css/gtkcssenumtypes.h.template +++ b/gtk/css/gtkcssenumtypes.h.template @@ -2,7 +2,7 @@ #ifndef __GTK_CSS_ENUM_TYPES_H__ #define __GTK_CSS_ENUM_TYPES_H__ -#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_CSS_COMPILATION) +#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only <gtk/css/gtkcss.h> can be included directly." #endif diff --git a/gtk/css/gtkcsslocation.h b/gtk/css/gtkcsslocation.h index f1ea3db50f..7fc4559fa0 100644 --- a/gtk/css/gtkcsslocation.h +++ b/gtk/css/gtkcsslocation.h @@ -18,7 +18,7 @@ #ifndef __GTK_CSS_LOCATION_H__ #define __GTK_CSS_LOCATION_H__ -#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_CSS_COMPILATION) +#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only <gtk/css/gtkcss.h> can be included directly." #endif diff --git a/gtk/css/gtkcsssection.h b/gtk/css/gtkcsssection.h index 4367376152..0a5d0f143d 100644 --- a/gtk/css/gtkcsssection.h +++ b/gtk/css/gtkcsssection.h @@ -18,7 +18,7 @@ #ifndef __GTK_CSS_SECTION_H__ #define __GTK_CSS_SECTION_H__ -#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_CSS_COMPILATION) +#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only <gtk/css/gtkcss.h> can be included directly." #endif diff --git a/gtk/css/meson.build b/gtk/css/meson.build index 907b174f49..00284baf36 100644 --- a/gtk/css/meson.build +++ b/gtk/css/meson.build @@ -44,7 +44,7 @@ libgtk_css = static_library('gtk_css', dependencies: gtk_css_deps, include_directories: [ confinc, ], c_args: [ - '-DGTK_CSS_COMPILATION', + '-DGTK_COMPILATION', '-DG_LOG_DOMAIN="Gtk"', '-DG_LOG_STRUCTURED=1', ] + common_cflags, |