mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Move windows-only code into #ifdef
This commit is contained in:
@@ -723,12 +723,9 @@ protected:
|
||||
};
|
||||
|
||||
#if defined(Q_OS_WIN32)
|
||||
#include <windows.h>
|
||||
|
||||
#include <shellapi.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
typedef LSTATUS(APIENTRY *PFN_RegCreateKeyExA)(HKEY hKey, LPCSTR lpSubKey, DWORD Reserved,
|
||||
LPSTR lpClass, DWORD dwOptions, REGSAM samDesired,
|
||||
@@ -737,6 +734,12 @@ typedef LSTATUS(APIENTRY *PFN_RegCreateKeyExA)(HKEY hKey, LPCSTR lpSubKey, DWORD
|
||||
|
||||
typedef LSTATUS(APIENTRY *PFN_RegCloseKey)(HKEY hKey);
|
||||
|
||||
#else
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#endif
|
||||
|
||||
bool IsRunningAsAdmin()
|
||||
{
|
||||
#if defined(Q_OS_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user