Changeset 3833


Ignore:
Timestamp:
Mar 2, 2014, 2:17:46 AM (11 years ago)
Author:
bird
Message:

More watcom hacking.

Location:
trunk/libc
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/fenv.h

    r3765 r3833  
    9898#define FE_DFL_ENV      (&__fe_dfl_env)
    9999
    100 #define __fldcw(__cw)           __asm __volatile("fldcw %0" : : "m" (__cw))
    101 #define __fldenv(__env)         __asm __volatile("fldenv %0" : : "m" (__env))
    102 #define __fnclex()              __asm __volatile("fnclex")
    103 #define __fnstenv(__env)        __asm __volatile("fnstenv %0" : "=m" (*(__env)))
    104 #define __fnstcw(__cw)          __asm __volatile("fnstcw %0" : "=m" (*(__cw)))
    105 #define __fnstsw(__sw)          __asm __volatile("fnstsw %0" : "=am" (*(__sw)))
    106 #define __fwait()               __asm __volatile("fwait")
    107 #define __ldmxcsr(__csr)        __asm __volatile("ldmxcsr %0" : : "m" (__csr))
    108 #define __stmxcsr(__csr)        __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
     100#if defined(__GNUC__)
     101# define __fldcw(__cw)          __asm __volatile("fldcw %0" : : "m" (__cw))
     102# define __fldenv(__env)        __asm __volatile("fldenv %0" : : "m" (__env))
     103# define __fnclex()             __asm __volatile("fnclex")
     104# define __fnstenv(__env)       __asm __volatile("fnstenv %0" : "=m" (*(__env)))
     105# define __fnstcw(__cw)         __asm __volatile("fnstcw %0" : "=m" (*(__cw)))
     106# define __fnstsw(__sw)         __asm __volatile("fnstsw %0" : "=am" (*(__sw)))
     107# define __fwait()              __asm __volatile("fwait")
     108# define __ldmxcsr(__csr)       __asm __volatile("ldmxcsr %0" : : "m" (__csr))
     109# define __stmxcsr(__csr)       __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
     110
     111#elif defined(__WATCOMC__)
     112# define __fldcw(__cw)          __fldcw_(&(__cw))
     113void __fldcw_(unsigned short *);
     114# pragma aux __fldcw = "fldcw [ecx]" parm [ecx];
     115# define __fldenv(__env)        __fldenv_(&(__env))
     116void __fldenv_(fenv_t const *);
     117# pragma aux __fldenv_ = "fldenv [edx]" parm [edx] modify;  /** @todo how to tell it we've modified memory? */
     118void __fnclex(void);
     119# pragma aux __fnclex = "fnclex"
     120void __fnstenv(fenv_t *);
     121# pragma aux __fstenv = "fstenv [edx]" parm [edx];
     122
     123void __fnstcw(unsigned short *);
     124# pragma aux __fnstcw = "fnstcw [ecx]" parm [ecx] modify; /** @todo how to tell it we've modified memory? */
     125
     126void __fnstsw(unsigned short *);
     127# pragma aux __fnstsw = "fnstsw [eax]" parm [eax] modify;/** @todo how to tell it we've modified memory? */
     128void __fwait(void);
     129# pragma aux __fwait = "fwait"
     130# define __ldmxcsr(__csr)       __ldmxcsr_(&(__csr))
     131void __ldmxcsr_(int *);
     132# pragma aux __ldmxcsr_ = "ldmxcsr [eax]" parm [eax];
     133void __stmxcsr(int *);
     134# pragma aux __stmxcsr = "stmxcsr [eax]" parm [eax] modify;  /** @todo how to tell it we've modified memory? */
     135#else
     136# error "Port me"
     137#endif
    109138
    110139static __inline int
  • trunk/libc/include/spawn.h

    r1706 r3833  
    2727
    2828#include <features.h>
    29 #ifndef __EMX__                         /* bird */
     29#ifndef __KLIBC__                       /* bird */
    3030#include <sched.h>
    3131#endif                                  /* bird */
     
    3434
    3535/* bird - start */
    36 #ifdef __EMX__
     36#ifdef __KLIBC__
    3737#undef __used /* BSD defines this in sys/cdefs.h since 5.3 */
    3838#ifndef __THROW
  • trunk/libc/include/sys/cdefs.h

    r3832 r3833  
    140140# endif
    141141
     142# ifdef __WATCOMC__ /* The foo(type __param[restrict]) isn't supported. */
     143#  undef __restrict_arr
     144#  define __restrict_arr
     145# endif
     146
    142147/** @def __KLIBC_CC_NO_COMPLEX
    143148 * Indicates that the compiles does not implement _Complex.
  • trunk/libc/src/glibc/include/libc-alias-glibc.h

    r2240 r3833  
    4444#ifndef _LIBC_SYMBOLS_H /* hackityhack */
    4545# undef weak_alias
    46 # ifdef __WANT_WEAK__
     46# if defined(__WANT_WEAK__) && defined(__GNUC__)
    4747#  define weak_alias(name, aliasname) \
    4848    extern __typeof(name) aliasname  __attribute__((weak, alias(#name)));
  • trunk/libc/src/glibc/intl/dcigettext.c

    r1904 r3833  
    180180   IS_PATH_WITH_DIR(P)  tests whether P contains a directory specification.
    181181 */
    182 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
     182#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __OS2__ || defined __DJGPP__
    183183  /* Win32, OS/2, DOS */
    184184# define ISSLASH(C) ((C) == '/' || (C) == '\\')
  • trunk/libc/src/glibc/intl/loadinfo.h

    r1904 r3833  
    5252
    5353/* Separator in PATH like lists of pathnames.  */
    54 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
     54#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __OS2__ || defined __DJGPP__
    5555  /* Win32, OS/2, DOS */
    5656# define PATH_SEPARATOR ';'
  • trunk/libc/src/glibc/intl/localecharset.c

    r1841 r3833  
    6363# include <windows.h>
    6464#endif
    65 #if defined OS2
     65#if defined(OS2) || defined(__OS2__)
    6666# define INCL_DOS
    6767# include <os2.h>
     
    7474#endif
    7575
    76 #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
     76#if defined _WIN32 || defined __WIN32__ || defined __EMX_ || defined __OS2__ || defined __DJGPP__
    7777  /* Win32, OS/2, DOS */
    7878# define ISSLASH(C) ((C) == '/' || (C) == '\\')
  • trunk/libc/src/glibc/misc/error.c

    r2259 r3833  
    2626
    2727#include <stdio.h>
    28 #ifndef __EMX__                         /* bird */
     28#ifndef __KLIBC__                       /* bird */
    2929#include <libintl.h>
    3030#endif                                  /* bird */
     
    103103# endif
    104104
    105 #ifndef __EMX__ /* bird */
     105#ifndef __KLIBC__ /* bird */
    106106/* The calling program should define program_name and set it to the
    107107   name of the executing program.  */
    108108extern char *program_name;
    109 #else /* __EMX__ */                     /* bird */
     109#else /* __KLIBC__ */                    /* bird */
    110110/* Use the BSD _getprogname() which the Innotek LIBC also implements.
    111111   Using this save the time used to maintain the two program_* vars
     
    124124# define error __error
    125125# define error_at_line __error_at_line
    126 #endif /* __EMX__ */                     /* bird */
    127 
    128 
    129 #ifndef __EMX__ /* bird */
     126#endif /* __KLIBC__ */                    /* bird */
     127
     128
     129#ifndef __KLIBC__ /* bird */
    130130# if HAVE_STRERROR_R || defined strerror_r
    131131#  define __strerror_r strerror_r
     
    152152#  endif /* HAVE_STRERROR */
    153153# endif /* HAVE_STRERROR_R || defined strerror_r */
    154 #endif /* !__EMX__ */ /* bird */
     154#endif /* !__KLIBC__ */ /* bird */
    155155#endif  /* not _LIBC */
    156156
  • trunk/libc/src/glibc/posix/regcomp.c

    r3828 r3833  
    562562{
    563563  /* Set the first 128 bits.  */
     564# if defined(_MSC_VER) || defined(__WATCOMC__) /* bird */
     565  BITSET_WORD_MAX, BITSET_WORD_MAX,
     566#  if ULONG_MAX > INT_MAX
     567  BITSET_WORD_MAX, BITSET_WORD_MAX,
     568  0, 0,
     569#  endif
     570  0, 0,
     571# else  /* bird */
    564572  [0 ... 0x80 / BITSET_WORD_BITS - 1] = BITSET_WORD_MAX
     573# endif /* bird */
    565574};
    566575#endif
  • trunk/libc/src/glibc/posix/regex_internal.c

    r3059 r3833  
    3030                                          unsigned int context,
    3131                                          unsigned int hash) internal_function;
     32
    3233
    3334
  • trunk/libc/src/glibc/posix/regex_internal.h

    r3828 r3833  
    395395#ifdef RE_ENABLE_I18N
    396396static void build_wcs_buffer (re_string_t *pstr) internal_function;
    397 static int build_wcs_upper_buffer (re_string_t *pstr) internal_function;
     397/*static int build_wcs_upper_buffer (re_string_t *pstr) internal_function;*/       /* bird */
     398static reg_errcode_t build_wcs_upper_buffer (re_string_t *pstr) internal_function; /* bird */
    398399#endif /* RE_ENABLE_I18N */
    399400static void build_upper_buffer (re_string_t *pstr) internal_function;
     
    566567  /* The string object corresponding to the input string.  */
    567568  re_string_t input;
    568 #if defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
     569#if defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined(__WATCOMC__))
    569570  const re_dfa_t *const dfa;
    570571#else
  • trunk/libc/src/glibc/posix/regexec.c

    r3828 r3833  
    635635  int extra_nmatch;
    636636  int sb, ch;
    637 #if defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
     637#if defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined(__WATCOMC__))
    638638  re_match_context_t mctx = { .dfa = dfa };
    639639#else
     
    644644  RE_TRANSLATE_TYPE t = preg->translate;
    645645
    646 #if !(defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L))
     646#if !(defined _LIBC || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined(__WATCOMC__)))
    647647  memset (&mctx, '\0', sizeof (re_match_context_t));
    648648  mctx.dfa = dfa;
     
    28992899    }
    29002900
     2901#ifdef __GNUC__
    29012902  str_idx = path->next_idx ?: top_str;
     2903#else
     2904  str_idx = path->next_idx ? path->next_idx : top_str;
     2905#endif
    29022906
    29032907  /* Temporary modify MCTX.  */
  • trunk/libc/src/glibc/posix/spawn_faction_addclose.c

    r1027 r3833  
    2929                                   int fd)
    3030{
    31 #ifndef __EMX__
     31#ifndef __KLIBC__ /** @todo fix this*/
    3232  int maxfd = __sysconf (_SC_OPEN_MAX);
    3333#else
  • trunk/libc/src/glibc/posix/spawn_faction_adddup2.c

    r1027 r3833  
    2929                                  int fd, int newfd)
    3030{
    31 #ifndef __EMX__
     31#ifndef __KLIBC__ /** @todo fix this*/
    3232  int maxfd = __sysconf (_SC_OPEN_MAX);
    3333#else
  • trunk/libc/src/glibc/posix/spawn_faction_addopen.c

    r1027 r3833  
    3030                                  mode_t mode)
    3131{
    32 #ifndef __EMX__
     32#ifndef __KLIBC__ /** @todo fix this*/
    3333  int maxfd = __sysconf (_SC_OPEN_MAX);
    3434#else
  • trunk/libc/src/glibc/string/argz-addsep.c

    r1076 r3833  
    1818   02111-1307 USA.  */
    1919
    20 #ifdef __EMX__
    2120#include "libc-alias-glibc.h"
    22 #endif
    2321#include <argz.h>
    2422#include <errno.h>
  • trunk/libc/src/glibc/string/argz-append.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/argz-count.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/argz-create.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422
    2523#include <argz.h>
  • trunk/libc/src/glibc/string/argz-ctsep.c

    r1076 r3833  
    1818   02111-1307 USA.  */
    1919
    20 #ifdef __EMX__
    2120#include "libc-alias-glibc.h"
    22 #endif
    2321#include <argz.h>
    2422#include <errno.h>
  • trunk/libc/src/glibc/string/argz-delete.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/argz-extract.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523
  • trunk/libc/src/glibc/string/argz-insert.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/argz-next.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/argz-replace.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <stdlib.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/argz-stringify.c

    r1076 r3833  
    1919   02111-1307 USA.  */
    2020
    21 #ifdef __EMX__
    2221#include "libc-alias-glibc.h"
    23 #endif
    2422#include <argz.h>
    2523#include <string.h>
  • trunk/libc/src/glibc/string/strndup.c

    r1076 r3833  
    1717   02111-1307 USA.  */
    1818
    19 #ifdef __EMX__
    2019#include "libc-alias-glibc.h"
    21 #endif
    2220#ifdef HAVE_CONFIG_H
    2321# include "config.h"
  • trunk/libc/src/glibc/sysdeps/Makefile.kmk

    r2710 r3833  
    4646
    4747libc_glibc_sysdeps_SOURCES.x86 = \
    48         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/rawmemchr.S \
    49         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/stpncpy.S \
    50         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/strchrnul.S \
    51         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_atan2l.c \
    52         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_atanhl.S \
    53         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp2l.S \
    54         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp10.S \
    55         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp10f.S \
    56         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp10l.S \
    57         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_fmodl.c \
    58         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log2.S \
    59         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log2f.S \
    60         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log2l.S \
    61         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log10l.S \
    62         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_logl.S \
    63         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_powl.S \
    64         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_remainderl.S \
    65         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_scalbl.S \
    66         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_sqrtl.c \
    67         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_asinhl.S \
    68         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_atanl.c \
    69         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_cexp.S \
    70         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_expm1l.S \
    71         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_llrintl.S \
    72         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_log1pl.S \
    73         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_logbl.c \
    74         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_lrintl.S \
    75         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_nearbyintl.S \
    76         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_remquol.S \
    77         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_rintl.c \
    78         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_significandl.c \
    79         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_sincos.S \
    80         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_sincosf.S \
    81         $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_sincosl.S \
    82         \
    8348        $(PATH_LIBC_SRC)/glibc/sysdeps/generic/cargf.c \
    8449        $(PATH_LIBC_SRC)/glibc/sysdeps/generic/fpu_control.c \
     
    148113        $(PATH_LIBC_SRC)/glibc/sysdeps/ieee754/ldbl-96/e_lgammal_r.c \
    149114
     115if !defined(CFG_LIBC_USE_WATCOM) && !defined(CFG_LIBC_USE_MSVC) ## @todo later
     116libc_glibc_sysdeps_SOURCES.x86 = \
     117        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/rawmemchr.S \
     118        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/stpncpy.S \
     119        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/strchrnul.S \
     120        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_atan2l.c \
     121        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_atanhl.S \
     122        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp2l.S \
     123        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp10.S \
     124        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp10f.S \
     125        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_exp10l.S \
     126        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_fmodl.c \
     127        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log2.S \
     128        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log2f.S \
     129        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log2l.S \
     130        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_log10l.S \
     131        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_logl.S \
     132        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_powl.S \
     133        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_remainderl.S \
     134        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_scalbl.S \
     135        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/e_sqrtl.c \
     136        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_asinhl.S \
     137        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_atanl.c \
     138        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_cexp.S \
     139        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_expm1l.S \
     140        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_llrintl.S \
     141        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_log1pl.S \
     142        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_logbl.c \
     143        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_lrintl.S \
     144        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_nearbyintl.S \
     145        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_remquol.S \
     146        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_rintl.c \
     147        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_significandl.c \
     148        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_sincos.S \
     149        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_sincosf.S \
     150        $(PATH_LIBC_SRC)/glibc/sysdeps/i386/fpu/s_sincosl.S
     151endif
     152
    150153# configure the variants. */
    151154$(call LIBC_CONFIG_VARIANT_LIBS,libc_glibc_sysdeps)
  • trunk/libc/src/glibc/sysdeps/i386/sysdep.h

    r2150 r3833  
    111111#define mcount          _mcount
    112112#endif
    113 #ifdef __EMX__
     113#if defined(__KLIBC__) && (defined(_WIN32) || defined(__OS2__))
    114114#define mcount __mcount
    115115#endif
  • trunk/libc/src/glibc/sysdeps/ieee754/ldbl-96/e_j0l.c

    r2150 r3833  
    7575#include "math.h"
    7676#include "math_private.h"
     77#ifdef __WATCOMC__
     78# undef huge
     79#endif
    7780
    7881#ifdef __STDC__
  • trunk/libc/src/glibc/sysdeps/ieee754/ldbl-96/e_j1l.c

    r2150 r3833  
    7575#include "math.h"
    7676#include "math_private.h"
     77#ifdef __WATCOMC__
     78#undef huge
     79#endif
    7780
    7881#ifdef __STDC__
     
    8790static long double
    8891#endif
    89   huge = 1e4930L,
     92 huge = 1e4930L,
    9093 one = 1.0L,
    9194 invsqrtpi = 5.6418958354775628694807945156077258584405e-1L,
  • trunk/libc/src/glibc/sysdeps/os2/sysdep.h

    r2112 r3833  
    2222/* config.h candidates? */
    2323#undef NO_UNDERSCORES
    24 #define HAVE_CPP_ASM_DEBUGINFO
    25 #define HAVE_ASM_SET_DIRECTIVE
    26 #define HAVE_ASM_WEAKEXT_DIRECTIVE
     24#ifdef __GNUC__
     25# define HAVE_CPP_ASM_DEBUGINFO
     26# define HAVE_ASM_SET_DIRECTIVE
     27# define HAVE_ASM_WEAKEXT_DIRECTIVE
     28#endif
    2729#ifndef __BOUNDED_POINTERS__
    28 #define __BOUNDED_POINTERS__ 0
     30# define __BOUNDED_POINTERS__ 0
    2931#endif
    3032
Note: See TracChangeset for help on using the changeset viewer.