Commit 00db711c authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

widl: Swap the version packing order back to what typelibs expect.

parent 3c9e7aba
...@@ -46,8 +46,10 @@ size_t widl_getline(char **linep, size_t *lenp, FILE *fp); ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment