i965: Hack in avoidance of c++ reserved keyword in libdrm.
I'm also fixing this upstream in libdrm, but this avoids new libdrm dependency for the moment.
This commit is contained in:
@@ -26,6 +26,14 @@
|
||||
*/
|
||||
|
||||
extern "C" {
|
||||
|
||||
#include <sys/types.h>
|
||||
/* Evil hack for using libdrm in a c++ compiler. */
|
||||
#define virtual virt
|
||||
#include "i915_drm.h"
|
||||
#include "intel_bufmgr.h"
|
||||
#undef virtual
|
||||
|
||||
#include "main/macros.h"
|
||||
#include "main/shaderobj.h"
|
||||
#include "program/prog_parameter.h"
|
||||
|
Reference in New Issue
Block a user