Skip to content

Commit 0d930ac

Browse files
authored
Fix dependency issue with define for MessageBoxUTF8
1 parent 7789d6a commit 0d930ac

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Shared/sdk/SharedUtil.Misc.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747
#endif
4848
#endif
4949

50+
#ifdef WIN32
51+
// Forward declare basic windows types to avoid including windows.h here
52+
struct HWND__;
53+
#ifndef _WINDOWS_
54+
typedef HWND__* HWND;
55+
typedef unsigned int UINT;
56+
#endif
57+
#endif
58+
5059
namespace SharedUtil
5160
{
5261
class CArgMap;
@@ -79,9 +88,7 @@ namespace SharedUtil
7988
// Output a UTF8 encoded messagebox
8089
// Used in the Win32 Client only
8190
//
82-
#ifdef _WINDOWS_
8391
int MessageBoxUTF8(HWND hWnd, SString lpText, SString lpCaption, UINT uType);
84-
#endif
8592

8693
//
8794
// Return full path and filename of parent exe

0 commit comments

Comments
 (0)