1 #ifndef _COMMON_COMPAT_H_ 2 #define _COMMON_COMPAT_H_ 3 4 #if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 18) 5 #define CONST_ABI_18_0 const 6 #else 7 #define CONST_ABI_18_0 8 #endif 9 10 #if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 16) 11 #define CONST_ABI_16_0 const 12 #else 13 #define CONST_ABI_16_0 14 #endif 15 16 #if ((GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 16) && \ 17 (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 19)) 18 #define CONST_ABI_16_TO_19 const 19 #else 20 #define CONST_ABI_16_TO_19 21 #endif 22 23 #if (GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 13) 24 static inline void 25 xf86SaveModeContents(DisplayModePtr intern, const DisplayModeRec *mode) 26 { 27 *intern = *mode; 28 intern->prev = intern->next = NULL; 29 intern->name = NULL; 30 intern->PrivSize = 0; 31 intern->PrivFlags = 0; 32 intern->Private = NULL; 33 } 34 #endif 35 36 #ifndef fbGetRotatedPixmap 37 #define fbGetRotatedPixmap(_pGC) NULL 38 #endif 39 40 #ifndef DRM_MODE_FB_DIRTY_MAX_CLIPS 41 #define DRM_MODE_FB_DIRTY_MAX_CLIPS 256 42 #endif 43 44 #endif 45 46