From eb1f6005f327932652a84f01e298395ced7a3687 Mon Sep 17 00:00:00 2001 From: Bladen Martin Date: Mon, 8 Jun 2020 21:53:17 +0530 Subject: Code has been made OS independent --- src/ghdlserver/ghdlserver.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/ghdlserver/ghdlserver.h') diff --git a/src/ghdlserver/ghdlserver.h b/src/ghdlserver/ghdlserver.h index 9f23f0b..0011d00 100644 --- a/src/ghdlserver/ghdlserver.h +++ b/src/ghdlserver/ghdlserver.h @@ -1,13 +1,31 @@ /* 18.Mar.2017 - RM - Cleaned up.*/ +/* 20.June.2020 - BM - Added OS dependent includes*/ +#define _GNU_SOURCE +#include #include #include -#include + #include #include +#include + +#ifdef __linux__ #include #include #include +#endif + +#ifdef _WIN32 +#include +#include +#include +#include +#endif + + + + // Should be enough.. #define MAX_BUF_SIZE 4096 -- cgit From 0d7dc23ae2b9e8a9d21dbb318195f64cbd7bb3dc Mon Sep 17 00:00:00 2001 From: Bladen Martin Date: Tue, 14 Jul 2020 11:56:28 +0530 Subject: cleaned up code --- src/ghdlserver/ghdlserver.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src/ghdlserver/ghdlserver.h') 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 #include - #include #include #include #ifdef __linux__ -#include -#include -#include -#endif - -#ifdef _WIN32 -#include -#include -#include -#include + #include + #include + #include +#elif _WIN32 + #include + #include + #include + #include #endif - - - // Should be enough.. #define MAX_BUF_SIZE 4096 -- cgit