New upstream version 25.0.3+dfsg1
This commit is contained in:
parent
04fe0efc67
commit
8b2e5f2130
569 changed files with 62491 additions and 5875 deletions
|
|
@ -39,6 +39,7 @@ public:
|
|||
{
|
||||
Clear();
|
||||
ptr = val;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline T **operator&()
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Unknwn.h>
|
||||
#endif
|
||||
|
||||
/* Oh no I have my own com pointer class, the world is ending, how dare you
|
||||
* write your own! */
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,24 @@ struct win_version_info {
|
|||
int revis;
|
||||
};
|
||||
|
||||
static inline int win_version_compare(struct win_version_info *dst,
|
||||
struct win_version_info *src)
|
||||
{
|
||||
if (dst->major > src->major)
|
||||
return 1;
|
||||
if (dst->major == src->major) {
|
||||
if (dst->minor > src->minor)
|
||||
return 1;
|
||||
if (dst->minor == src->minor) {
|
||||
if (dst->build > src->build)
|
||||
return 1;
|
||||
if (dst->build == src->build)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
EXPORT bool is_64_bit_windows(void);
|
||||
EXPORT bool get_dll_ver(const wchar_t *lib, struct win_version_info *info);
|
||||
EXPORT void get_win_ver(struct win_version_info *info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue