Mercurial > hg > tinycc
changeset 457:b28f6437f95d
Patch from Rumko to support Dragonfly BSD. (We really need a "platform.h".)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 18 Aug 2007 00:13:48 -0500 |
parents | 415e7007008c |
children | 983341326428 |
files | bcheck.c tcc.h |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bcheck.c Sat Aug 18 00:08:46 2007 -0500 +++ b/bcheck.c Sat Aug 18 00:13:48 2007 -0500 @@ -21,7 +21,7 @@ #include <stdio.h> #include <stdarg.h> #include <string.h> -#ifndef __FreeBSD__ +#if !defined(__FreeBSD__) && !defined(__DragonFly__) #include <malloc.h> #endif @@ -36,7 +36,7 @@ #define HAVE_MEMALIGN -#if defined(__FreeBSD__) || defined(__dietlibc__) || defined(__UCLIBC__) +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__dietlibc__) || defined(__UCLIBC__) #warning Bound checking not fully supported in this environment. #undef CONFIG_TCC_MALLOC_HOOKS #undef HAVE_MEMALIGN
--- a/tcc.h Sat Aug 18 00:08:46 2007 -0500 +++ b/tcc.h Sat Aug 18 00:13:48 2007 -0500 @@ -650,7 +650,7 @@ #define strtof (float)strtod #define strtoll (long long)strtol #endif -#elif defined(TCC_UCLIBC) || defined(__FreeBSD__) +#elif defined(TCC_UCLIBC) || defined(__FreeBSD__) || defined(__DragonFly__) /* currently incorrect */ static inline long double strtold(const char *nptr, char **endptr) {