diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2018-02-21 23:16:20 +0000 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2018-02-21 23:16:20 +0000 |
commit | e2ccf3981d78dfeb390d22c74625b60310100abb (patch) | |
tree | fc30b3b3fe20cc005634818512dab3514acf8ef4 /lib/bcheck.c | |
parent | 3f2e65a51523fbb98a44b71c29ae3a3fcc13854b (diff) |
New upstream version 0.9.27
Diffstat (limited to 'lib/bcheck.c')
-rw-r--r-- | lib/bcheck.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/lib/bcheck.c b/lib/bcheck.c index d3b9955..90f0ad2 100644 --- a/lib/bcheck.c +++ b/lib/bcheck.c @@ -21,10 +21,15 @@ #include <stdio.h> #include <stdarg.h> #include <string.h> -#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) \ - && !defined(__DragonFly__) && !defined(__OpenBSD__) && !defined(__NetBSD__) + +#if !defined(__FreeBSD__) \ + && !defined(__FreeBSD_kernel__) \ + && !defined(__DragonFly__) \ + && !defined(__OpenBSD__) \ + && !defined(__NetBSD__) #include <malloc.h> #endif + #if !defined(_WIN32) #include <unistd.h> #endif @@ -45,11 +50,14 @@ #define CONFIG_TCC_MALLOC_HOOKS #define HAVE_MEMALIGN -#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \ - || defined(__DragonFly__) || defined(__dietlibc__) \ - || defined(__UCLIBC__) || defined(__OpenBSD__) || defined(__NetBSD__) \ - || defined(_WIN32) || defined(TCC_UCLIBC) -#warning Bound checking does not support malloc (etc.) in this environment. +#if defined(__FreeBSD__) \ + || defined(__FreeBSD_kernel__) \ + || defined(__DragonFly__) \ + || defined(__OpenBSD__) \ + || defined(__NetBSD__) \ + || defined(__dietlibc__) \ + || defined(_WIN32) +//#warning Bound checking does not support malloc (etc.) in this environment. #undef CONFIG_TCC_MALLOC_HOOKS #undef HAVE_MEMALIGN #endif @@ -236,7 +244,7 @@ BOUND_PTR_INDIR(16) #if defined(__GNUC__) && (__GNUC__ >= 6) /* - * At least gcc 6.2 complains when __builtin_frame_address is used whith + * At least gcc 6.2 complains when __builtin_frame_address is used with * nonzero argument. */ #pragma GCC diagnostic push |