SDL_windowstaskdialog.h (struct _TASKDIALOGCONFIG): make unions anonymous

otherwise build fails. (at least with my VS2005. and the code accesses the
arms of the unions anonymously anyway.)
This commit is contained in:
Ozkan Sezer 2018-06-30 20:55:51 +03:00
parent 949b8bd8c5
commit 013b146de9
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ typedef struct _TASKDIALOGCONFIG
{ {
HICON hMainIcon; HICON hMainIcon;
PCWSTR pszMainIcon; PCWSTR pszMainIcon;
} DUMMYUNIONNAME; } /*DUMMYUNIONNAME*/;
PCWSTR pszMainInstruction; PCWSTR pszMainInstruction;
PCWSTR pszContent; PCWSTR pszContent;
UINT cButtons; UINT cButtons;
@ -146,7 +146,7 @@ typedef struct _TASKDIALOGCONFIG
{ {
HICON hFooterIcon; HICON hFooterIcon;
PCWSTR pszFooterIcon; PCWSTR pszFooterIcon;
} DUMMYUNIONNAME2; } /*DUMMYUNIONNAME2*/;
PCWSTR pszFooter; PCWSTR pszFooter;
PFTASKDIALOGCALLBACK pfCallback; PFTASKDIALOGCALLBACK pfCallback;
LONG_PTR lpCallbackData; LONG_PTR lpCallbackData;