summaryrefslogtreecommitdiff
path: root/opl/ioperm_sys.c
diff options
context:
space:
mode:
authorSimon Howard2011-03-03 21:41:51 +0000
committerSimon Howard2011-03-03 21:41:51 +0000
commit6a5d123fc662bcdbc08d973e3b8b79a95f24fa51 (patch)
tree6441eba586e4763cf6d1d4e71e0f6b4764cdba92 /opl/ioperm_sys.c
parent909d93ce182c215fddcd48acec9dd291dd8aba34 (diff)
downloadchocolate-doom-6a5d123fc662bcdbc08d973e3b8b79a95f24fa51.tar.gz
chocolate-doom-6a5d123fc662bcdbc08d973e3b8b79a95f24fa51.tar.bz2
chocolate-doom-6a5d123fc662bcdbc08d973e3b8b79a95f24fa51.zip
Fix Visual Studio build (thanks GhostlyDeath).
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2287
Diffstat (limited to 'opl/ioperm_sys.c')
-rw-r--r--opl/ioperm_sys.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/opl/ioperm_sys.c b/opl/ioperm_sys.c
index 8f50bcd3..531b4136 100644
--- a/opl/ioperm_sys.c
+++ b/opl/ioperm_sys.c
@@ -52,10 +52,12 @@ struct ioperm_data
// Function pointers for advapi32.dll. This DLL does not exist on
// Windows 9x, so they are dynamically loaded from the DLL at runtime.
-static SC_HANDLE WINAPI (*MyOpenSCManagerW)(wchar_t *lpMachineName,
+// haleyjd 09/09/10: Moved calling conventions into ()'s
+
+static SC_HANDLE (WINAPI *MyOpenSCManagerW)(wchar_t *lpMachineName,
wchar_t *lpDatabaseName,
DWORD dwDesiredAccess) = NULL;
-static SC_HANDLE WINAPI (*MyCreateServiceW)(SC_HANDLE hSCManager,
+static SC_HANDLE (WINAPI *MyCreateServiceW)(SC_HANDLE hSCManager,
wchar_t *lpServiceName,
wchar_t *lpDisplayName,
DWORD dwDesiredAccess,
@@ -68,17 +70,17 @@ static SC_HANDLE WINAPI (*MyCreateServiceW)(SC_HANDLE hSCManager,
wchar_t *lpDependencies,
wchar_t *lpServiceStartName,
wchar_t *lpPassword);
-static SC_HANDLE WINAPI (*MyOpenServiceW)(SC_HANDLE hSCManager,
+static SC_HANDLE (WINAPI *MyOpenServiceW)(SC_HANDLE hSCManager,
wchar_t *lpServiceName,
DWORD dwDesiredAccess);
-static BOOL WINAPI (*MyStartServiceW)(SC_HANDLE hService,
+static BOOL (WINAPI *MyStartServiceW)(SC_HANDLE hService,
DWORD dwNumServiceArgs,
wchar_t **lpServiceArgVectors);
-static BOOL WINAPI (*MyControlService)(SC_HANDLE hService,
+static BOOL (WINAPI *MyControlService)(SC_HANDLE hService,
DWORD dwControl,
LPSERVICE_STATUS lpServiceStatus);
-static BOOL WINAPI (*MyCloseServiceHandle)(SC_HANDLE hSCObject);
-static BOOL WINAPI (*MyDeleteService)(SC_HANDLE hService);
+static BOOL (WINAPI *MyCloseServiceHandle)(SC_HANDLE hSCObject);
+static BOOL (WINAPI *MyDeleteService)(SC_HANDLE hService);
static struct
{