Dynload winmm, which is weird but it fixes vs2022 builds

This commit is contained in:
IoI_xD 2026-08-08 16:24:23 -07:00
commit 9856979906
5 changed files with 28 additions and 3 deletions

View file

@ -363,6 +363,12 @@ MWDECL int (*MwFLTextHeightWithText)(MwFLFont ttf, const char* text);
MWDECL void* (*MwFLFontLoad)(unsigned char* data, unsigned int size, int px);
MWDECL void (*MwFLFontFree)(void* handle);
#ifdef _WIN32
void *MwLL_winmmLib;
long (__stdcall* MwLL_PFN_timeGetTime)(void);
unsigned int (__stdcall* MwLL_PFN_timeBeginPeriod)(unsigned int period);
#endif
#ifdef __cplusplus
}
#endif

View file

@ -26,6 +26,7 @@
#ifdef _MILSKO
#include <windows.h>
#include <mmsystem.h>
#include <timeapi.h>
#ifndef GWLP_USERDATA
#define GWLP_USERDATA GWL_USERDATA
#define GWLP_WNDPROC GWL_WNDPROC