From a56a16ee73b7b5a6290cc2bb09b20359371c4a62 Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Sun, 29 Sep 2002 18:05:32 +0000
Subject: [PATCH] Added check for OpenGL.

---
 dlls/ddraw/mesa_private.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/ddraw/mesa_private.h b/dlls/ddraw/mesa_private.h
index a5539ef770b..6632f8467e5 100644
--- a/dlls/ddraw/mesa_private.h
+++ b/dlls/ddraw/mesa_private.h
@@ -24,6 +24,8 @@
 
 #include "d3d_private.h"
 
+#ifdef HAVE_OPENGL
+
 #undef APIENTRY
 #undef CALLBACK
 #undef WINAPI
@@ -194,4 +196,6 @@ extern ICOM_VTABLE(IDirect3D) mesa_d3dvt;
 extern ICOM_VTABLE(IDirect3D2) mesa_d3d2vt;
 extern ICOM_VTABLE(IDirect3D3) mesa_d3d3vt;
 
+#endif /* HAVE_OPENGL */
+
 #endif /* __GRAPHICS_WINE_MESA_PRIVATE_H */
-- 
GitLab