libobs: Restore Windows Vista compatibility

Certain PSAPI functions moved to KERNEL32 after Vista, setting
PSAPI_VERSION 1 uses the old PSAPI exports for compatibility. Vista
support was unintentionally broken by a6318ff.
This commit is contained in:
Richard Stanway
2017-09-28 13:28:46 +02:00
parent c9182a9878
commit 27d16f961b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ if(WIN32)
set(libobs_audio_monitoring_HEADERS
audio-monitoring/win32/wasapi-output.h
)
set(libobs_PLATFORM_DEPS winmm)
set(libobs_PLATFORM_DEPS winmm psapi)
if(MSVC)
set(libobs_PLATFORM_DEPS
${libobs_PLATFORM_DEPS}
+2 -1
View File
@@ -14,6 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#define PSAPI_VERSION 1
#include <windows.h>
#include <mmsystem.h>
#include <shellapi.h>
@@ -48,7 +49,7 @@ static inline uint32_t get_winver(void)
winver = (ver.major << 16) | ver.minor;
}
return winver;
return winver;
}
void *os_dlopen(const char *path)