From 1e5af53a425162fe83e0e01385213f5c64eecdb0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 30 Jul 2020 10:25:46 +0200 Subject: Add include guards to version headers --- src/version.c.in | 4 ++++ src/version.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/version.c.in b/src/version.c.in index bf2fddee..86315801 100644 --- a/src/version.c.in +++ b/src/version.c.in @@ -1,3 +1,7 @@ +/* Prevent subsequent inclusion of version.h + * (e.g. in the case of Meson unity build mode) */ +#define CRYSTFEL_VERSION_H + const char *crystfel_version_string() { return "@VCS_TAG@"; diff --git a/src/version.h b/src/version.h index 0ecac74a..e31c4c17 100644 --- a/src/version.h +++ b/src/version.h @@ -1,2 +1,5 @@ +#ifndef CRYSTFEL_VERSION_H +#define CRYSTFEL_VERSION_H extern const char *crystfel_version_string(void); extern const char *crystfel_licence_string(void); +#endif -- cgit v1.2.3