From: Søren Sandmann Date: Wed, 26 Mar 2008 03:11:19 +0000 (-0400) Subject: Make pixman-version.h print an error if you include it by itself X-Git-Tag: pixman-0.10.0~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb7fceabb9da30d03b29f9ff946a3793a1b9ebab;p=platform%2Fupstream%2Fpixman.git Make pixman-version.h print an error if you include it by itself --- 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@