diff options
author | Keith Packard <keithp@keithp.com> | 2010-04-30 13:33:54 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-06 16:00:12 -0700 |
commit | 42ddc39430a10513c49a415ddf1a0dc5fa52089e (patch) | |
tree | 017a90e54a017bd36d74fa592eb9ff85c16255d3 /uxa/uxa-priv.h | |
parent | 2c1fda08e889cad07acb452230da06f9c383d21c (diff) |
Adapt to DevPrivate API changes
This allows the driver to be built against either the old or new
DevPrivate API.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'uxa/uxa-priv.h')
-rw-r--r-- | uxa/uxa-priv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uxa/uxa-priv.h b/uxa/uxa-priv.h index 9d99a731..47b62d4f 100644 --- a/uxa/uxa-priv.h +++ b/uxa/uxa-priv.h @@ -166,7 +166,12 @@ typedef struct { (PixmapWidthPaddingInfo[d].padRoundUp+1))) #endif +#if HAS_DEVPRIVATEKEYREC +extern DevPrivateKeyRec uxa_screen_index; +#else extern int uxa_screen_index; +#endif + static inline uxa_screen_t *uxa_get_screen(ScreenPtr screen) { return (uxa_screen_t *) dixLookupPrivate(&screen->devPrivates, |