include: Fix the CDSIZEOF_STRUCT definition to avoid warnings on 64-bit.
This commit is contained in:
parent
4c47385ea5
commit
b037bd7bff
|
@ -130,7 +130,7 @@ DECL_WINELIB_TYPE_AW(OPENFILENAME)
|
||||||
DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
|
DECL_WINELIB_TYPE_AW(LPOPENFILENAME)
|
||||||
|
|
||||||
#ifndef CDSIZEOF_STRUCT
|
#ifndef CDSIZEOF_STRUCT
|
||||||
#define CDSIZEOF_STRUCT(type,field) ((int)&(((type *)0)->field) + sizeof(((type*)0)->field))
|
#define CDSIZEOF_STRUCT(type,field) ((INT_PTR)&(((type *)0)->field) + sizeof(((type*)0)->field))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
|
#define OPENFILENAME_SIZE_VERSION_400A CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
|
||||||
|
|
Loading…
Reference in New Issue