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.
This commit is contained in:
Emmanuele Bassi 2017-08-10 23:27:56 +01:00
parent 6d704cddea
commit b0d21c3a37

View File

@ -1,4 +1,7 @@
/*** BEGIN file-header ***/
#ifndef ST_COMPILATION
#define ST_COMPILATION
#endif
#include "st-enum-types.h"
/*** END file-header ***/