Skip to content

Commit fa4f2f5

Browse files
authored
Merge pull request #63 from kingspride/master
make Windows Compatible
2 parents 4a24c56 + 13c3da4 commit fa4f2f5

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

client/castApp/src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ reccaster_SRCS += casttcp.c
1717
reccaster_SRCS += castinit.c
1818
reccaster_SRCS += dbcb.c
1919

20+
reccaster_SYS_LIBS_WIN32 += ws2_32
2021
reccaster_LIBS += $(EPICS_BASE_IOC_LIBS)
2122

2223
DBD += reccaster.dbd

client/castApp/src/caster.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#ifndef CASTER_H
22
#define CASTER_H
33

4+
#if defined(_MSC_VER)
5+
#include <BaseTsd.h>
6+
#include <WinSock2.h>
7+
typedef SSIZE_T ssize_t;
8+
#endif
9+
410
#include <epicsTypes.h>
511
#include <osiSock.h>
612
#include <epicsEvent.h>

client/castApp/src/sockhelpers.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#include <epicsTypes.h>
55
#include <osiSock.h>
66

7+
#if defined(_MSC_VER)
8+
#include <BaseTsd.h>
9+
#include <WinSock2.h>
10+
typedef SSIZE_T ssize_t;
11+
#endif
12+
713
#ifndef SOCKERRNOSET
814
# if defined(WIN32) || defined(WIN64)
915
# define SOCKERRNOSET(E) WSASetLastError(E)

0 commit comments

Comments
 (0)