st/xorg: Handle new DamageUnregister API which has only one argument

This fixes building against the new API in X server 1.15
Taken from xf86-video-modesetting beca4dfb0e4d11d3729214967a1fe56ee5669831 from Keith Packard
This commit is contained in:
Chí-Thanh Christopher Nguyễn 2013-11-29 17:23:36 +01:00 committed by Carl Worth
parent 3d8f3eea52
commit b625016802

View file

@ -62,6 +62,10 @@
#include "libkms/libkms.h"
#endif
#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
#define DamageUnregister(d, dd) DamageUnregister(dd)
#endif
/*
* Functions and symbols exported to Xorg via pointers.
*/