summaryrefslogtreecommitdiff
path: root/src/ghdlserver/ghdlserver.h
diff options
context:
space:
mode:
authorBladen Martin2020-07-14 11:56:28 +0530
committerGitHub2020-07-14 11:56:28 +0530
commit0d7dc23ae2b9e8a9d21dbb318195f64cbd7bb3dc (patch)
tree77c7267c44ab41f90707174f14bec3be355509ca /src/ghdlserver/ghdlserver.h
parentd8423a5909a5bbac9b17761a1ea844cb2ca401a0 (diff)
downloadnghdl-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.h22
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