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:26:09 +02:00
parent c9182a9878
commit 27d16f961b
2 changed files with 3 additions and 2 deletions

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)