mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
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:
parent
363d0f6774
commit
fa2deb3ddc
1 changed files with 8 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue