diff options
| author | Paul Eggert | 2013-10-22 21:37:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-10-22 21:37:17 -0700 |
| commit | e4ea223d7332952cc0e1275fa4c982645e11b17f (patch) | |
| tree | 61d5958db59b27d659db37f404ecd424d9e5fc6d /src | |
| parent | 758bed52afd57bd140409bfbbeabb4a89b5182d3 (diff) | |
| download | emacs-e4ea223d7332952cc0e1275fa4c982645e11b17f.tar.gz emacs-e4ea223d7332952cc0e1275fa4c982645e11b17f.zip | |
Port to Solaris 10 and its bundled GCC.
Problem reported by Timothy C. Burt.
* floatfns.c (isfinite, isnan): Redefine unconditionally.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/floatfns.c | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3bd9dce4fb7..b534e0a1ab0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-10-23 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port to Solaris 10 and its bundled GCC. | ||
| 4 | Problem reported by Timothy C. Burt. | ||
| 5 | * floatfns.c (isfinite, isnan): Redefine unconditionally. | ||
| 6 | |||
| 1 | 2013-10-21 Dmitry Antipov <dmantipov@yandex.ru> | 7 | 2013-10-21 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 8 | ||
| 3 | Do not allow font caches to grow too large. | 9 | Do not allow font caches to grow too large. |
diff --git a/src/floatfns.c b/src/floatfns.c index f3d0936f888..9f0bab2a452 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -46,12 +46,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 46 | 46 | ||
| 47 | #include <math.h> | 47 | #include <math.h> |
| 48 | 48 | ||
| 49 | #ifndef isfinite | 49 | /* 'isfinite' and 'isnan' cause build failures on Solaris 10 with the |
| 50 | # define isfinite(x) ((x) - (x) == 0) | 50 | bundled GCC in c99 mode. Work around the bugs with simple |
| 51 | #endif | 51 | implementations that are good enough. */ |
| 52 | #ifndef isnan | 52 | #undef isfinite |
| 53 | # define isnan(x) ((x) != (x)) | 53 | #define isfinite(x) ((x) - (x) == 0) |
| 54 | #endif | 54 | #undef isnan |
| 55 | #define isnan(x) ((x) != (x)) | ||
| 55 | 56 | ||
| 56 | /* Check that X is a floating point number. */ | 57 | /* Check that X is a floating point number. */ |
| 57 | 58 | ||