diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-02-26 03:09:21 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-02-26 03:11:47 +0100 |
commit | 90ec0bf58bf8cd9e59fd4cab2c1dbfde9b4119e1 (patch) | |
tree | 98d5905baa26c2976b57060de5de6665ad2076ba /trio/triodef.h | |
parent | 64d253be1e67688147246819eeb8e4f8f8e77243 (diff) | |
download | fetchmail-90ec0bf58bf8cd9e59fd4cab2c1dbfde9b4119e1.tar.gz fetchmail-90ec0bf58bf8cd9e59fd4cab2c1dbfde9b4119e1.tar.bz2 fetchmail-90ec0bf58bf8cd9e59fd4cab2c1dbfde9b4119e1.zip |
Import new trio version, disabling config.h #include.
Diffstat (limited to 'trio/triodef.h')
-rw-r--r-- | trio/triodef.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/trio/triodef.h b/trio/triodef.h index 2ce12b8b..95d41d11 100644 --- a/trio/triodef.h +++ b/trio/triodef.h @@ -1,6 +1,6 @@ /************************************************************************* * - * $Id: triodef.h,v 1.33 2009/05/24 11:39:24 breese Exp $ + * $Id: triodef.h,v 1.35 2009/09/20 11:37:14 breese Exp $ * * Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net> * @@ -148,7 +148,7 @@ #if defined(__STDC__) \ || defined(_MSC_EXTENSIONS) \ - || defined(TRIO_COMPILER_BORLAND) + || defined(TRIO_COMPILER_BCB) # define PREDEF_STANDARD_C89 #endif #if defined(__STDC_VERSION__) @@ -311,4 +311,25 @@ typedef void * trio_pointer_t; # define TRIO_COMPILER_SUPPORTS_LL #endif +#if defined(__CYGWIN__) +/* + * Cygwin defines the macros for hosted C99, but does not support certain + * long double math functions. + */ +# include <cygwin/version.h> +# define TRIO_CYGWIN_VERSION_API CYGWIN_VERSION_API_MAJOR * 1000 + \ + CYGWIN_VERSION_API_MINOR +/* + * Please change the version number below when the Cygwin API supports + * long double math functions (powl, fmodl, etc.) + */ +# if TRIO_CYGWIN_VERSION_API < 99999999 +# define TRIO_NO_FLOORL 1 +# define TRIO_NO_CEILL 1 +# define TRIO_NO_POWL 1 +# define TRIO_NO_FMODL 1 +# define TRIO_NO_LOG10L 1 +# endif +#endif + #endif /* TRIO_TRIODEF_H */ |