mirror of https://github.com/ARMmbed/mbed-os.git
parent
7e206a90db
commit
56ca532ef1
|
@ -656,8 +656,7 @@ extern "C" int PREFIX(_close)(FILEHANDLE fh)
|
||||||
#if !MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
|
#if !MBED_CONF_PLATFORM_STDIO_MINIMAL_CONSOLE_ONLY
|
||||||
extern "C" int close(int fildes)
|
extern "C" int close(int fildes)
|
||||||
{
|
{
|
||||||
if (fildes < 0)
|
if (fildes < 0) {
|
||||||
{
|
|
||||||
errno = EBADF;
|
errno = EBADF;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue