diff options
author | OBATA Akio <obache@wizdas.com> | 2020-05-06 18:44:52 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-06 12:49:53 +0200 |
commit | 2caec0e0c4ebfa79fc4ee067a45b197432f704a8 (patch) | |
tree | 57b9c40d3c574278349e8279f73fa0b352e5156d | |
parent | 275b351a4f93856169dd7137de9bd49df92832b7 (diff) | |
download | tdeedu-2caec0e0c4ebfa79fc4ee067a45b197432f704a8.tar.gz tdeedu-2caec0e0c4ebfa79fc4ee067a45b197432f704a8.zip |
Allow to build on any platforms
No reason to include standard headers and define macros for standard types
only on Linux and FreeBSD.
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 6e2ac1d3bb80095dfd58235c25fea9732277251f)
-rw-r--r-- | kstars/kstars/indi/apogee/stdafx.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/kstars/kstars/indi/apogee/stdafx.h b/kstars/kstars/indi/apogee/stdafx.h index 23c27c21..cac13554 100644 --- a/kstars/kstars/indi/apogee/stdafx.h +++ b/kstars/kstars/indi/apogee/stdafx.h @@ -10,7 +10,6 @@ #if !defined(STDAFX__INCLUDED_) #define STDAFX__INCLUDED_ -#ifdef __linux__ #include <stdlib.h> #include <stdio.h> #include <unistd.h> @@ -18,6 +17,7 @@ #define ULONG unsigned long #define USHORT unsigned short #define PUSHORT unsigned short * +#ifdef __linux__ #define BYTE unsigned char #define DWORD long #define BOOLEAN unsigned long @@ -27,16 +27,7 @@ #define INTERNET_FLAG_NO_CACHE_WRITE 1 #define INTERNET_FLAG_KEEP_CONNECTION 1 #define Sleep(x) usleep(1000*x) -#endif - -#ifdef __FreeBSD__ -#include <stdlib.h> -#include <stdio.h> -#include <unistd.h> -#include <string.h> -#define ULONG unsigned long -#define USHORT unsigned short -#define PUSHORT unsigned short * +#else #define Sleep(x) sleep(x) #endif |