diff options
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 |