Changeset View
Changeset View
Standalone View
Standalone View
lang/picoc/files/patch-cstdlib__stdio.c
--- ./cstdlib/stdio.c.orig 2011-02-21 06:22:13.000000000 +0100 | --- cstdlib/stdio.c.orig 2017-03-23 11:34:47 UTC | ||||
+++ ./cstdlib/stdio.c 2011-03-11 08:08:19.710970864 +0100 | +++ cstdlib/stdio.c | ||||
@@ -414,7 +414,7 @@ | @@ -428,7 +428,7 @@ void StdioFerror(struct ParseState *Parser, struct Val | ||||
void StdioFileno(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) | void StdioFileno(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) | ||||
{ | { | ||||
#ifndef WIN32 | |||||
- ReturnValue->Val->Integer = fileno(Param[0]->Val->Pointer); | - ReturnValue->Val->Integer = fileno(Param[0]->Val->Pointer); | ||||
+ ReturnValue->Val->Integer = fileno((FILE *)Param[0]->Val->Pointer); | + ReturnValue->Val->Integer = fileno((FILE *)Param[0]->Val->Pointer); | ||||
} | #else | ||||
ReturnValue->Val->Integer = _fileno(Param[0]->Val->Pointer); | |||||
void StdioFflush(struct ParseState *Parser, struct Value *ReturnValue, struct Value **Param, int NumArgs) | #endif |