diff options
author | Bladen Martin | 2020-07-14 11:56:28 +0530 |
---|---|---|
committer | GitHub | 2020-07-14 11:56:28 +0530 |
commit | 0d7dc23ae2b9e8a9d21dbb318195f64cbd7bb3dc (patch) | |
tree | 77c7267c44ab41f90707174f14bec3be355509ca /src/ghdlserver/ghdlserver.h | |
parent | d8423a5909a5bbac9b17761a1ea844cb2ca401a0 (diff) | |
download | nghdl-0d7dc23ae2b9e8a9d21dbb318195f64cbd7bb3dc.tar.gz nghdl-0d7dc23ae2b9e8a9d21dbb318195f64cbd7bb3dc.tar.bz2 nghdl-0d7dc23ae2b9e8a9d21dbb318195f64cbd7bb3dc.zip |
cleaned up code
Diffstat (limited to 'src/ghdlserver/ghdlserver.h')
-rw-r--r-- | src/ghdlserver/ghdlserver.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/ghdlserver/ghdlserver.h b/src/ghdlserver/ghdlserver.h index 0011d00..e04209b 100644 --- a/src/ghdlserver/ghdlserver.h +++ b/src/ghdlserver/ghdlserver.h @@ -5,28 +5,22 @@ #include <stdlib.h> #include <stdint.h> - #include <unistd.h> #include <sys/types.h> #include<string.h> #ifdef __linux__ -#include <sys/socket.h> -#include <netinet/in.h> -#include <netdb.h> -#endif - -#ifdef _WIN32 -#include<ws2tcpip.h> -#include<winsock2.h> -#include<eventsys.h> -#include<windows.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <netdb.h> +#elif _WIN32 + #include<ws2tcpip.h> + #include<winsock2.h> + #include<eventsys.h> + #include<windows.h> #endif - - - // Should be enough.. #define MAX_BUF_SIZE 4096 |