From 757c0c32955e215931b5d412a40d3687212dc0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Fri, 5 Mar 2010 01:20:09 +0000 Subject: [PATCH] [INTERPRETER] * BUG: IUTF8 flag may not exist in virtual terminal management. * BUG: long double mathematic functions do not exist in CygWin. git-svn-id: svn://localhost/gambas/trunk@2748 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_c_process.c | 2 ++ main/gbx/gbx_math.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main/gbx/gbx_c_process.c b/main/gbx/gbx_c_process.c index 074944675..fe5d31f86 100644 --- a/main/gbx/gbx_c_process.c +++ b/main/gbx/gbx_c_process.c @@ -263,8 +263,10 @@ static void init_child_tty(int fd) tcgetattr(fd, &terminal); terminal.c_iflag |= ICRNL | IXON | IXOFF; + #ifdef IUTF8 if (LOCAL_is_UTF8) terminal.c_iflag |= IUTF8; + #endif terminal.c_oflag |= OPOST; diff --git a/main/gbx/gbx_math.c b/main/gbx/gbx_math.c index e45686eb0..ebc64def6 100644 --- a/main/gbx/gbx_math.c +++ b/main/gbx/gbx_math.c @@ -212,7 +212,7 @@ double exp2(double x) #endif -#if defined(OS_FREEBSD) || defined(OS_OPENBSD) || defined(ARCH_ARM) +#if defined(OS_FREEBSD) || defined(OS_OPENBSD) || defined(ARCH_ARM) || defined(OS_CYGWIN) long double log10l(long double x) {