aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma-error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgamma-error.h')
-rw-r--r--src/libgamma-error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libgamma-error.h b/src/libgamma-error.h
index f506955..d17eac8 100644
--- a/src/libgamma-error.h
+++ b/src/libgamma-error.h
@@ -18,6 +18,10 @@
#ifndef LIBGAMMA_ERROR_H
#define LIBGAMMA_ERROR_H
+#if !defined(LIBGAMMA_CONFIG_H) && !defined(DEBUG)
+# error libgamma-error.h should not be included directly, include libgamma.h instead
+#endif
+
/**
* The selected adjustment method does not exist