OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13028a
)
In preparation for a Mac OS X version, allow both Unix and Mac line termination in...
author
Eric Branlund
<ebranlund@fastmail.com>
Sun, 5 Apr 2020 02:51:56 +0000
(19:51 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sun, 5 Apr 2020 02:51:56 +0000
(19:51 -0700)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
b9f8905
..
b226f43
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-450,7
+450,7
@@
errr my_fgets(FILE *fff, char *buf, huge n)
/* Convert weirdness */
for (s = tmp; *s; s++)
{
-#if defined(MACINTOSH) || defined(MACH_O_CARBON)
+#if defined(MACINTOSH) || defined(MACH_O_CARBON)
|| defined(MACH_O_COCOA)
/*
* Be nice to the Macintosh, where a file can have Mac or Unix
@@
-459,7
+459,7
@@
errr my_fgets(FILE *fff, char *buf, huge n)
*/
if (*s == '\r') *s = '\n';
-#endif /* MACINTOSH || MACH_O_CARBON */
+#endif /* MACINTOSH || MACH_O_CARBON
|| MACH_O_COCOA
*/
/* Handle newline */
if (*s == '\n')