Fixed issues with Udp win code
This commit is contained in:
parent
1076f7673d
commit
18d6ea762c
@ -5,6 +5,7 @@
|
||||
#define BUF_SIZE 1024
|
||||
|
||||
#include "UdpArduino.h"
|
||||
#include "UdpWindows.h"
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#include <winsock2.h>
|
||||
|
@ -1,5 +1,17 @@
|
||||
#include "UdpWindows.h"
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#pragma comment(lib, "ws2_32.lib")
|
||||
#elif defined(__unix__) || defined(__APPLE__)
|
||||
#include <arpa/inet.h>
|
||||
#include <fcntl.h> // For fcntl
|
||||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
namespace Passer {
|
||||
namespace Control {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user