mirror of
https://github.com/nihui/opencv-mobile.git
synced 2025-10-01 23:02:17 +08:00
make mingw happy (#182)
Storage class specifiers are not allowed in friend declarations. Maybe it's a MSVC dialect.
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user