Fixed AmigaOS 3 defines

This commit is contained in:
llsth 2015-04-07 19:57:28 +02:00
parent e73a42b69a
commit 10860fb996
3 changed files with 8 additions and 8 deletions

View File

@ -32,7 +32,7 @@
#include "clib.h" #include "clib.h"
#ifdef __GNUC__ #if defined(__GNUC__) && !defined(AOS3)
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
#endif #endif

View File

@ -35,7 +35,7 @@
#include "clib.h" #include "clib.h"
#ifdef __GNUC__ #if defined(__GNUC__) && !defined(AOS3)
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
#endif #endif

View File

@ -66,13 +66,13 @@
#endif #endif
// Check weather an POSIX compatible API is available // Check weather an POSIX compatible API is available
#if defined(unix) || defined(__unix__) || defined(__unix) #if defined(unix) || defined(__unix__) || defined(__unix)
# ifndef UNIX # ifndef UNIX
# define UNIX # define UNIX
# endif # endif
# include <unistd.h> # include <unistd.h>
# include <dirent.h> # include <dirent.h>
# include <termios.h> # include <termios.h>
#endif #endif
/* STDC */ /* STDC */
@ -83,7 +83,7 @@
#endif #endif
/* GCC 2.95 */ /* GCC 2.95 */
#if (_GNUC_ == 2 && __GNUC_MINOR__ == 95) #if (__GNUC__ == 2 && __GNUC_MINOR__ == 95)
# include <sys/types.h> # include <sys/types.h>
typedef u_int8_t uint8_t; typedef u_int8_t uint8_t;
typedef u_int16_t uint16_t; typedef u_int16_t uint16_t;