mirror of https://gitlab.com/rnger/amath
pragma clean up
This commit is contained in:
parent
c90f3e1067
commit
8eee2e99cc
|
@ -0,0 +1,6 @@
|
||||||
|
*.kdev4
|
||||||
|
*.o
|
||||||
|
*.a
|
||||||
|
amath
|
||||||
|
amath-test
|
||||||
|
catalog/flexcat
|
|
@ -27,7 +27,7 @@
|
||||||
#ifndef _NUMBER_H
|
#ifndef _NUMBER_H
|
||||||
#define _NUMBER_H
|
#define _NUMBER_H
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(AOS3)
|
#if __GNUC__ > 2
|
||||||
#pragma GCC diagnostic ignored "-Wshadow"
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#include "clib.h"
|
#include "clib.h"
|
||||||
#include "main/token.h"
|
#include "main/token.h"
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(AOS3)
|
#if __GNUC__ > 2
|
||||||
#pragma GCC diagnostic ignored "-Wshadow"
|
#pragma GCC diagnostic ignored "-Wshadow"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#include "clib.h"
|
#include "clib.h"
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(AOS3)
|
#if __GNUC__ > 2
|
||||||
#pragma GCC diagnostic ignored "-Wcast-align"
|
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
#include "clib.h"
|
#include "clib.h"
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(AOS3)
|
#if __GNUC__ > 2
|
||||||
#pragma GCC diagnostic ignored "-Wcast-align"
|
#pragma GCC diagnostic ignored "-Wcast-align"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -82,16 +82,6 @@
|
||||||
# include <stdlib.h>
|
# include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* GCC 2.95 */
|
|
||||||
#if (__GNUC__ == 2 && __GNUC_MINOR__ == 95)
|
|
||||||
# include <sys/types.h>
|
|
||||||
typedef u_int8_t uint8_t;
|
|
||||||
typedef u_int16_t uint16_t;
|
|
||||||
typedef u_int32_t uint32_t;
|
|
||||||
typedef u_int64_t uint64_t;
|
|
||||||
# define IPTR LONG
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GCC 4.x & AROS API */
|
/* GCC 4.x & AROS API */
|
||||||
#ifdef AROS
|
#ifdef AROS
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
|
@ -107,4 +97,14 @@ typedef u_int64_t uint64_t;
|
||||||
# error Includedes must be defined for Amiga OS 4+
|
# error Includedes must be defined for Amiga OS 4+
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* GCC 2.95 */
|
||||||
|
#if (__GNUC__ == 2 && __GNUC_MINOR__ == 95)
|
||||||
|
# include <sys/types.h>
|
||||||
|
typedef u_int8_t uint8_t;
|
||||||
|
typedef u_int16_t uint16_t;
|
||||||
|
typedef u_int32_t uint32_t;
|
||||||
|
typedef u_int64_t uint64_t;
|
||||||
|
# define IPTR LONG
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#include "prim.h"
|
#include "prim.h"
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(AOS3)
|
#if __GNUC__ > 2
|
||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
#include "prim.h"
|
#include "prim.h"
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(AOS3)
|
#if __GNUC__ > 2
|
||||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue