https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d2c667c616580c2ffd516486b4212bf05ccff249

commit d2c667c616580c2ffd516486b4212bf05ccff249
Author:     Victor Perevertkin <[email protected]>
AuthorDate: Tue Apr 26 02:50:33 2022 +0300
Commit:     Victor Perevertkin <[email protected]>
CommitDate: Tue Apr 26 03:38:37 2022 +0300

    [WINED3D] Do not declare global variables in a header
---
 dll/directx/wine/wined3d/state.c      | 3 +++
 dll/directx/wine/wined3d/wined3d_gl.h | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dll/directx/wine/wined3d/state.c b/dll/directx/wine/wined3d/state.c
index 2f506c36d16..890af9c2ee0 100644
--- a/dll/directx/wine/wined3d/state.c
+++ b/dll/directx/wine/wined3d/state.c
@@ -38,6 +38,9 @@
 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
 WINE_DECLARE_DEBUG_CHANNEL(d3d_shader);
 
+void (WINE_GLAPI *glDisableWINE)(GLenum cap);
+void (WINE_GLAPI *glEnableWINE)(GLenum cap);
+
 ULONG CDECL wined3d_blend_state_incref(struct wined3d_blend_state *state)
 {
     ULONG refcount = InterlockedIncrement(&state->refcount);
diff --git a/dll/directx/wine/wined3d/wined3d_gl.h 
b/dll/directx/wine/wined3d/wined3d_gl.h
index 87283c850e1..f9fd9c307fa 100644
--- a/dll/directx/wine/wined3d/wined3d_gl.h
+++ b/dll/directx/wine/wined3d/wined3d_gl.h
@@ -28,8 +28,8 @@
 
 #define GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837  /* not in the gl spec */
 
-void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
-void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
+extern void (WINE_GLAPI *glDisableWINE)(GLenum cap) DECLSPEC_HIDDEN;
+extern void (WINE_GLAPI *glEnableWINE)(GLenum cap) DECLSPEC_HIDDEN;
 
 /* OpenGL extensions. */
 enum wined3d_gl_extension

Reply via email to