This should add Windows support to libsam3, but **NOT** libsam3a

This commit is contained in:
idk
2020-11-18 11:41:26 -05:00
parent 4ed9b483fb
commit 49286ea282
2 changed files with 33 additions and 4 deletions

View File

@ -11,7 +11,6 @@
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
@ -20,12 +19,28 @@
#include <time.h>
#include <unistd.h>
#ifdef __MINGW32__
//#include <winsock.h>
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL 0
#endif
#ifndef SHUT_RDWR
# define SHUT_RDWR 2
#endif
#endif
#ifdef __unix__
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#endif
////////////////////////////////////////////////////////////////////////////////
int libsam3_debug = 0;

View File

@ -13,7 +13,6 @@
#include <ctype.h>
#include <errno.h>
#include <netdb.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
@ -22,13 +21,28 @@
#include <time.h>
#include <unistd.h>
#ifdef __MINGW32__
//#include <winsock.h>
#include <winsock2.h>
#include <windows.h>
#include <ws2tcpip.h>
#ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL 0
#endif
#ifndef SHUT_RDWR
# define SHUT_RDWR 2
#endif
#endif
#ifdef __unix__
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#endif
////////////////////////////////////////////////////////////////////////////////
int libsam3a_debug = 0;