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>
This commit is contained in:
parent
61afe950e6
commit
e31564e1a2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user