Skip to content

Commit 604a677

Browse files
committed
Fix dependency issue with define for MessageBoxUTF8
1 parent ef96364 commit 604a677

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Shared/sdk/SharedUtil.Misc.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
#include "SharedUtil.Defines.h"
2323
#include "SharedUtil.Map.h"
2424

25+
#ifdef WIN32
26+
// Forward declare basic windows types to avoid including windows.h here
27+
struct HWND__;
28+
#ifndef _WINDOWS_
29+
typedef HWND__* HWND;
30+
typedef unsigned int UINT;
31+
#endif
32+
#endif
33+
2534
namespace SharedUtil
2635
{
2736
class CArgMap;
@@ -1718,3 +1727,4 @@ using namespace SharedUtil;
17181727
//
17191728
typedef void(FUNC_GetMtaVersion)(char* pBuffer, uint uiMaxSize);
17201729
MTAEXPORT void GetLibMtaVersion(char* pBuffer, uint uiMaxSize);
1730+

0 commit comments

Comments
 (0)