aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorPaul Eggert2020-01-01 04:15:27 +0000
committerPaul Eggert2019-12-31 20:18:22 -0800
commit12d004d6eee2d136825df92eca33eaa6b705030b (patch)
treebcb7c98c4e61fa819e04ab358ad4beaaf4cd361b /src/sysdep.c
parent87772ffe317897b781b2ef8b3bcaa9b6c077311c (diff)
downloademacs-12d004d6eee2d136825df92eca33eaa6b705030b.tar.gz
emacs-12d004d6eee2d136825df92eca33eaa6b705030b.zip
Assume C99-style ‘long long’
Now that Gnulib assumes ‘long long’, it is a good time to clean out old cruft porting to pre-C99 compilers that lack it. * src/data.c (ULL_WIDTH, ULL_MAX): Remove. All uses replaced by ULLONG_WIDTH, ULLONG_MAX. (bits_word_to_host_endian): Assume ‘unsigned long long’. By the way, the old code had a performance typo: it used HAVE_UNSIGNED_LONG_LONG where it should have used HAVE_UNSIGNED_LONG_LONG_INT. * src/sysdep.c (ULLONG_MAX): Remove, as lib/limits.h does this now. (time_from_jiffies) [GNU_LINUX]: Assume ‘long long’.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index cb2f7f2f23c..c6344d8cec7 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -135,11 +135,6 @@ int _cdecl _spawnlp (int, const char *, const char *, ...);
135# include <sys/socket.h> 135# include <sys/socket.h>
136#endif 136#endif
137 137
138/* ULLONG_MAX is missing on Red Hat Linux 7.3; see Bug#11781. */
139#ifndef ULLONG_MAX
140#define ULLONG_MAX TYPE_MAXIMUM (unsigned long long int)
141#endif
142
143/* Declare here, including term.h is problematic on some systems. */ 138/* Declare here, including term.h is problematic on some systems. */
144extern void tputs (const char *, int, int (*)(int)); 139extern void tputs (const char *, int, int (*)(int));
145 140
@@ -3141,7 +3136,7 @@ make_lisp_timeval (struct timeval t)
3141 3136
3142#endif 3137#endif
3143 3138
3144#if defined GNU_LINUX && defined HAVE_LONG_LONG_INT 3139#ifdef GNU_LINUX
3145static struct timespec 3140static struct timespec
3146time_from_jiffies (unsigned long long tval, long hz) 3141time_from_jiffies (unsigned long long tval, long hz)
3147{ 3142{