mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-25 17:19:46 +05:30
reverse-ramdisk.c: bytes_written
: reduce #if scope
This commit is contained in:
parent
9059cf1056
commit
0355b33d84
@ -191,9 +191,15 @@ int tf_write(int ID, size_t offset, void* src, size_t data_size) {
|
||||
|
||||
// Write the data to the file
|
||||
#if IS_POSIX
|
||||
ssize_t bytes_written = write(file, src, data_size);
|
||||
ssize_t
|
||||
#else
|
||||
size_t bytes_written = fwrite(src, 1, data_size, file);
|
||||
size_t
|
||||
#endif
|
||||
bytes_written =
|
||||
#if IS_POSIX
|
||||
write(file, src, data_size);
|
||||
#else
|
||||
fwrite(src, 1, data_size, file);
|
||||
#endif
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user