summaryrefslogtreecommitdiff
path: root/libnm/nm-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-types.h')
-rw-r--r--libnm/nm-types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnm/nm-types.h b/libnm/nm-types.h
index 170e8a36d4..9fcef32e1f 100644
--- a/libnm/nm-types.h
+++ b/libnm/nm-types.h
@@ -21,6 +21,10 @@
#ifndef NM_TYPES_H
#define NM_TYPES_H
+#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
+#error "Only <NetworkManager.h> can be included directly."
+#endif
+
#include <glib.h>
#include <glib-object.h>