widl: Swap the version packing order back to what typelibs expect.
This commit is contained in:
parent
3c9e7aba75
commit
00db711c6f
|
@ -46,8 +46,10 @@ size_t widl_getline(char **linep, size_t *lenp, FILE *fp);
|
||||||
UUID *parse_uuid(const char *u);
|
UUID *parse_uuid(const char *u);
|
||||||
int is_valid_uuid(const char *s);
|
int is_valid_uuid(const char *s);
|
||||||
|
|
||||||
#define MAKEVERSION(major, minor) ((((major) & 0xffff) << 16) | ((minor) & 0xffff))
|
/* typelibs expect the minor version to be stored in the higher bits and
|
||||||
#define MAJORVERSION(version) (((version) >> 16) & 0xffff)
|
* major to be stored in the lower bits */
|
||||||
#define MINORVERSION(version) ((version) & 0xffff)
|
#define MAKEVERSION(major, minor) ((((minor) & 0xffff) << 16) | ((major) & 0xffff))
|
||||||
|
#define MAJORVERSION(version) ((version) & 0xffff)
|
||||||
|
#define MINORVERSION(version) (((version) >> 16) & 0xffff)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue