mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 03:02:06 +00:00
Use STD*_FILENO constants (#1055)
These are defined in platform.h, but not consistently used Co-authored-by: Eldred Habert <eldredhabert0@gmail.com>
This commit is contained in:
@@ -492,7 +492,7 @@ void out_WriteObject(void)
|
||||
if (strcmp(objectName, "-") != 0)
|
||||
f = fopen(objectName, "wb");
|
||||
else
|
||||
f = fdopen(1, "wb");
|
||||
f = fdopen(STDOUT_FILENO, "wb");
|
||||
|
||||
if (!f)
|
||||
err("Couldn't write file '%s'", objectName);
|
||||
|
||||
Reference in New Issue
Block a user