diff options
author | Chris Robinson <[email protected]> | 2017-06-28 23:18:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-06-28 23:18:39 -0700 |
commit | 3a16fed279b69dbb74ca26f11279cbf258643ff2 (patch) | |
tree | ea234aea6d0cb3f7dca8d698c1376c678a0e0d2d /router/router.h | |
parent | ef7eced7a700ba12badf412e21e682b1b1c60683 (diff) |
Handle the ALC version for some extension capabilities
Also fix some improper parenthesis.
Diffstat (limited to 'router/router.h')
-rw-r--r-- | router/router.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/router/router.h b/router/router.h index f4ba33c7..30401f88 100644 --- a/router/router.h +++ b/router/router.h @@ -11,9 +11,24 @@ #include "rwlock.h" +#ifndef UNUSED +#if defined(__cplusplus) +#define UNUSED(x) +#elif defined(__GNUC__) +#define UNUSED(x) UNUSED_##x __attribute__((unused)) +#elif defined(__LCLINT__) +#define UNUSED(x) /*@unused@*/ x +#else +#define UNUSED(x) x +#endif +#endif + +#define MAKE_ALC_VER(major, minor) (((major)<<8) | (minor)) + typedef struct DriverIface { WCHAR Name[32]; HMODULE Module; + int ALCVer; LPALCCREATECONTEXT alcCreateContext; LPALCMAKECONTEXTCURRENT alcMakeContextCurrent; |