Skip to content
Snippets Groups Projects
Commit c32630a8 authored by rswindell's avatar rswindell
Browse files

Attempting Unix compatibility.

parent 5db6b105
No related branches found
No related tags found
No related merge requests found
......@@ -207,11 +207,6 @@
\****************************************************************************/
#ifdef _WIN32
#include <windows.h> // Sleep()
#include <process.h> // _beginthread()
#endif
#include "xsdk.h"
#ifdef _WINSOCKAPI_
......
......@@ -62,9 +62,9 @@
#include <sys/types.h>
#define GLOBAL extern /* turns XSDKVAR.C into a header file */
#include "xsdkvars.c"
#include "xsdkinet.h"
#include "xsdkwrap.h"
#include "xsdkvars.c"
#ifdef __cplusplus
extern "C" {
......
......@@ -94,7 +94,9 @@
#elif defined(_WIN32)
/* POIX semaphores */
#include <process.h> /* _beginthread() */
/* POSIX semaphores */
typedef HANDLE sem_t;
#define sem_init(psem,ps,v) ResetEvent(*(psem))
#define sem_wait(psem) WaitForSingleObject(*(psem),INFINITE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment