summaryrefslogtreecommitdiff
path: root/src/spice-version.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/spice-version.h.in')
-rw-r--r--src/spice-version.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spice-version.h.in b/src/spice-version.h.in
index 49164f8..2314022 100644
--- a/src/spice-version.h.in
+++ b/src/spice-version.h.in
@@ -18,6 +18,10 @@
#ifndef __SPICE_VERSION_H__
#define __SPICE_VERSION_H__
+#if !defined(__SPICE_CLIENT_H_INSIDE__) && !defined(SPICE_COMPILATION)
+#warning "Only <spice-client.h> can be included directly"
+#endif
+
/**
* SECTION:spice-version
* @short_description: Spice-Gtk version checking