diff options
author | Chris Robinson <[email protected]> | 2013-10-07 06:36:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-07 06:36:58 -0700 |
commit | b5fece03812dfe8edc1d3a613f3328a2df34f4cd (patch) | |
tree | b650171925807823fcb8eea0325e21223d001590 /Alc | |
parent | 1461903e0d713185875ab9d3ecc40ab922acb163 (diff) |
Add a CMake option to not define the IDs used on Windows
This includes the GUIDs, IIDs, CLSID, and PropertyKeys. It is up to the user
to ensure the appropriate IDs are defined when linked.
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c index fe1318ce..1eadc99c 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -28,6 +28,7 @@ #include <malloc.h> #endif +#ifndef AL_NO_UID_DEFS #if defined(HAVE_GUIDDEF_H) || defined(HAVE_INITGUID_H) #define INITGUID #include <windows.h> @@ -52,6 +53,8 @@ DEFINE_GUID(IID_IAudioRenderClient, 0xf294acfc, 0x3146, 0x4483, 0xa7,0xbf, 0xa DEFINE_DEVPROPKEY(DEVPKEY_Device_FriendlyName, 0xa45c254e, 0xdf1c, 0x4efd, 0x80,0x20, 0x67,0xd1,0x46,0xa8,0x50,0xe0, 14); #endif #endif +#endif /* AL_NO_UID_DEFS */ + #ifdef HAVE_DLFCN_H #include <dlfcn.h> #endif |