[gnome-shell] Define ST_COMPILATION in the St enumeration template
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Define ST_COMPILATION in the St enumeration template
- Date: Thu, 10 Aug 2017 22:45:20 +0000 (UTC)
commit b0d21c3a37df21bf048c1d5f6af5fc6af976a1af
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Aug 10 23:27:56 2017 +0100
Define ST_COMPILATION in the St enumeration template
In parallel builds we may end up with st-enum-types.c being built inside
separate targets outside of src/st which may not have the ST_COMPILATION
pre-processor symbol defined. For this reason, we need to define it
ourselves in the source file, before including other headers, to avoid
the single-include guard.
src/st/st-enum-types.c.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-enum-types.c.in b/src/st/st-enum-types.c.in
index 738ac27..bf0c544 100644
--- a/src/st/st-enum-types.c.in
+++ b/src/st/st-enum-types.c.in
@@ -1,4 +1,7 @@
/*** BEGIN file-header ***/
+#ifndef ST_COMPILATION
+#define ST_COMPILATION
+#endif
#include "st-enum-types.h"
/*** END file-header ***/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]