glamor-ddx: Fix a compiling error. Need revisit.

GC is redefined in the X11/Xlib.h and include/gcstruct.h which is
a xorg header file. Just use a macro to simply avoid the conflict.
Need revisit latter to find a correct way to fix this problem.
This commit is contained in:
Zhigang Gong 2011-05-12 01:42:05 +08:00
parent 18a52e2388
commit 4328037268

View File

@ -45,7 +45,9 @@
#include "../../../mi/micmap.h"
#include <xf86Crtc.h>
#include <xf86.h>
#define GC XORG_GC
#include <glamor.h>
#undef GC
#include "glamor_ddx.h"