make mingw happy (#182)

Storage class specifiers are not allowed in friend declarations. Maybe it's a MSVC dialect.
This commit is contained in:
zhuzeitou
2025-03-21 21:41:25 +08:00
committed by GitHub
parent 8b1a95d1ea
commit 312edb7f55
2 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ static inline void safeReleaseArray(T* &array) {
array = nullptr; array = nullptr;
} }
static LRESULT CALLBACK __globalWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) LRESULT CALLBACK __globalWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{ {
if (g_wndBeingCreated) { if (g_wndBeingCreated) {
g_wndBeingCreated->m_hWnd = hWnd; g_wndBeingCreated->m_hWnd = hWnd;

View File

@@ -16,7 +16,7 @@
#pragma once #pragma once
#include <Windows.h> #include <windows.h>
class SimpleWindow class SimpleWindow
{ {
@@ -25,7 +25,7 @@ protected:
virtual LRESULT windowProc(UINT msg, WPARAM wParam, LPARAM lParam); virtual LRESULT windowProc(UINT msg, WPARAM wParam, LPARAM lParam);
public: public:
friend static LRESULT CALLBACK __globalWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); friend LRESULT CALLBACK __globalWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
static double getDesktopDpiFactor(); static double getDesktopDpiFactor();