From b0d21c3a37df21bf048c1d5f6af5fc6af976a1af Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 10 Aug 2017 23:27:56 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/src/st/st-enum-types.c.in b/src/st/st-enum-types.c.in index 738ac2769..bf0c54470 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 ***/