Improve MAKEINTRESOURCE macros to silence warnings on overzealous gcc versions.
See issue #5343 for more details.

svn path=/trunk/; revision=51655
This commit is contained in:
Timo Kreuzer 2011-05-09 08:15:26 +00:00
parent 52077d8306
commit 4e8ffdfe77

View file

@ -577,8 +577,8 @@ extern "C" {
#define SB_BOTTOM 7
#define SB_TOP 6
#define IS_INTRESOURCE(i) (((ULONG_PTR)(i) >> 16) == 0)
#define MAKEINTRESOURCEA(i) (LPSTR)((ULONG_PTR)((WORD)(i)))
#define MAKEINTRESOURCEW(i) (LPWSTR)((ULONG_PTR)((WORD)(i)))
#define MAKEINTRESOURCEA(i) ((LPSTR)(ULONG_PTR)LOWORD(i))
#define MAKEINTRESOURCEW(i) ((LPWSTR)(ULONG_PTR)LOWORD(i))
#ifndef XFree86Server
# define RT_CURSOR MAKEINTRESOURCE(1)
# define RT_FONT MAKEINTRESOURCE(8)