Skip to content
Snippets Groups Projects
Commit 508984b8 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Make CerateEvent() prototype on *nix compatible with Win32

On Win32, the name param is an LPCSTR which apparently is Microsoft
talk for const char *.

In C we're allowed to do whatever we want, but in C++, this matters
more.
parent 8f9d12c3
No related branches found
No related tags found
No related merge requests found
Pipeline #5281 passed
......@@ -3679,7 +3679,7 @@ bool sbbs_t::init()
#ifdef USE_CRYPTLIB
pthread_mutex_init(&ssh_mutex,NULL);
ssh_mutex_created = true;
ssh_active = CreateEvent(NULL, TRUE, FALSE, (void *)"ssh_active");
ssh_active = CreateEvent(NULL, TRUE, FALSE, "ssh_active");
#endif
pthread_mutex_init(&input_thread_mutex,NULL);
input_thread_mutex_created = true;
......
......@@ -25,7 +25,7 @@
#include "genwrap.h"
xpevent_t
CreateEvent(void *sec, BOOL bManualReset, BOOL bInitialState, void *name)
CreateEvent(void *sec, BOOL bManualReset, BOOL bInitialState, const char *name)
{
xpevent_t event;
......
......@@ -40,7 +40,7 @@ typedef struct xpevent *xpevent_t;
#if defined(__cplusplus)
extern "C" {
#endif
xpevent_t CreateEvent(void *sec, BOOL bManualReset, BOOL bInitialState, void *name);
xpevent_t CreateEvent(void *sec, BOOL bManualReset, BOOL bInitialState, const char *name);
BOOL SetEvent(xpevent_t event);
BOOL ResetEvent(xpevent_t event);
BOOL CloseEvent(xpevent_t event);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment