diff options
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; |