summaryrefslogtreecommitdiff
path: root/src/runtime/c
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2017-05-26 08:54:12 +0000
committerkrasimir <krasimir@chalmers.se>2017-05-26 08:54:12 +0000
commit4c59db0dac70ac6815d9002baaa91dac1c9559db (patch)
tree00d9284c46dbba839c7bb40cf598fd2abca715ae /src/runtime/c
parent8de69b0c314c5637f5eda3653a373e3e2a29d4dd (diff)
another fix for the compilation of the bindings to the runtime
Diffstat (limited to 'src/runtime/c')
-rw-r--r--src/runtime/c/pgf/linearizer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/c/pgf/linearizer.h b/src/runtime/c/pgf/linearizer.h
index 9d2d607ee..816181090 100644
--- a/src/runtime/c/pgf/linearizer.h
+++ b/src/runtime/c/pgf/linearizer.h
@@ -2,7 +2,6 @@
#define PGF_LINEARIZER_H_
#include <gu/enum.h>
-#include <pgf/data.h>
/// Linearization of abstract syntax trees.
@@ -13,6 +12,8 @@
/// A concrete syntax tree
typedef GuVariant PgfCncTree;
+#ifdef PGF_DATA_H_
+
typedef enum {
PGF_CNC_TREE_APP,
PGF_CNC_TREE_CHUNKS,
@@ -47,6 +48,8 @@ typedef struct {
PgfLiteral lit;
} PgfCncTreeLit;
+#endif
+
/// An enumeration of #PgfCncTree trees.
typedef GuEnum PgfCncTreeEnum;