From 15d89bdff64aaa7632f1db9a9a9deb5efc4c70a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Wed, 16 May 2018 16:42:51 +0200 Subject: [PATCH] Win32: Allow compile-time override of class name To use, define _GLFW_WNDCLASSNAME to any sane wide string. Fixes #1120. --- src/win32_platform.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/win32_platform.h b/src/win32_platform.h index 9a669215..59815146 100644 --- a/src/win32_platform.h +++ b/src/win32_platform.h @@ -242,7 +242,9 @@ typedef VkBool32 (APIENTRY *PFN_vkGetPhysicalDeviceWin32PresentationSupportKHR)( #include "egl_context.h" #include "osmesa_context.h" -#define _GLFW_WNDCLASSNAME L"GLFW30" +#if !defined(_GLFW_WNDCLASSNAME) + #define _GLFW_WNDCLASSNAME L"GLFW30" +#endif #define _glfw_dlopen(name) LoadLibraryA(name) #define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle)