From cb7fceabb9da30d03b29f9ff946a3793a1b9ebab Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann?= Date: Tue, 25 Mar 2008 23:11:19 -0400 Subject: [PATCH] Make pixman-version.h print an error if you include it by itself --- pixman/pixman-version.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pixman/pixman-version.h.in b/pixman/pixman-version.h.in index ce86312..256b2e6 100644 --- a/pixman/pixman-version.h.in +++ b/pixman/pixman-version.h.in @@ -27,6 +27,10 @@ #ifndef PIXMAN_VERSION_H__ #define PIXMAN_VERSION_H__ +#ifndef PIXMAN_H__ +# error pixman-version.h should only be included by pixman.h +#endif + #define PIXMAN_VERSION_MAJOR @PIXMAN_VERSION_MAJOR@ #define PIXMAN_VERSION_MINOR @PIXMAN_VERSION_MINOR@ #define PIXMAN_VERSION_MICRO @PIXMAN_VERSION_MICRO@ -- 2.7.4