Fixed fputc() for the PPC platform (would only write null bytes due to
big endian). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6b076b3556
commit
818feababe
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@ -69,12 +69,13 @@ fprintf(FILE *file, const char *format, ...)
|
||||
|
||||
|
||||
int
|
||||
fputc(int character, FILE *file)
|
||||
fputc(int c, FILE *file)
|
||||
{
|
||||
if (file == NULL)
|
||||
return B_FILE_ERROR;
|
||||
|
||||
status_t status;
|
||||
char character = (char)c;
|
||||
|
||||
// we only support direct console output right now...
|
||||
status = ((ConsoleNode *)file)->Write(&character, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user