Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1d28afaf
Commit
1d28afaf
authored
May 22, 2003
by
Dave Love
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(difftime) [!HAVE_DIFFTIME]: Define.
(strerror) [!HAVE_STRERROR && !WINDOWSNT]: New.
parent
99ffa7da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
lib-src/update-game-score.c
lib-src/update-game-score.c
+23
-1
No files found.
lib-src/update-game-score.c
View file @
1d28afaf
/* update-game-score.c --- Update a score file
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 2002
, 2003
Free Software Foundation, Inc.
This file is part of GNU Emacs.
...
...
@@ -68,6 +68,11 @@ extern int optind, opterr;
#define P_(proto) ()
#endif
#ifndef HAVE_DIFFTIME
/* OK on POSIX (time_t is arithmetic type) modulo overflow in subtraction. */
#define difftime(t1, t0) (double)((t1) - (t0))
#endif
int
usage
(
err
)
int
err
;
...
...
@@ -111,6 +116,23 @@ lose (msg)
void
lose_syserr
P_
((
const
char
*
msg
))
NO_RETURN
;
/* Taken from sysdep.c. */
#ifndef HAVE_STRERROR
#ifndef WINDOWSNT
char
*
strerror
(
errnum
)
int
errnum
;
{
extern
char
*
sys_errlist
[];
extern
int
sys_nerr
;
if
(
errnum
>=
0
&&
errnum
<
sys_nerr
)
return
sys_errlist
[
errnum
];
return
(
char
*
)
"Unknown error"
;
}
#endif
/* not WINDOWSNT */
#endif
/* ! HAVE_STRERROR */
void
lose_syserr
(
msg
)
const
char
*
msg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment