summaryrefslogtreecommitdiff
path: root/include/servermd.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel@daenzer.net>2014-07-31 08:35:13 -0700
committerKeith Packard <keithp@keithp.com>2014-07-31 08:35:13 -0700
commite31564e1a21e73f4d20d6471da4fc7a9b63e4062 (patch)
treee4e37d6767997822834e69fc0959fd10ca332b73 /include/servermd.h
parent61afe950e6a1a640ad9c5368549914ea32b90d48 (diff)
Check for dix-config.h or xorg-server.h before using X_BYTE_ORDER
Now that servermd.h depends on X_BYTE_ORDER being defined in dix-config.h or xorg-server.h, check to make sure one of those has been included before using the value. Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/servermd.h')
-rw-r--r--include/servermd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/servermd.h b/include/servermd.h
index 0132d67bf..c88a5428d 100644
--- a/include/servermd.h
+++ b/include/servermd.h
@@ -47,7 +47,10 @@ SOFTWARE.
#ifndef SERVERMD_H
#define SERVERMD_H 1
-#include "dix-config.h"
+#if !defined(_DIX_CONFIG_H_) && !defined(_XORG_SERVER_H_)
+#error Drivers must include xorg-server.h before any other xserver headers
+#error xserver code must include dix-config.h before any other headers
+#endif
#if X_BYTE_ORDER == X_LITTLE_ENDIAN
#define IMAGE_BYTE_ORDER LSBFirst