mirror of https://gitlab.com/rnger/amath
Fixed AmigaOS 3 defines
This commit is contained in:
parent
e73a42b69a
commit
10860fb996
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue