forked from KolibriOS/kolibrios
newlib-2.1.0
git-svn-id: svn://kolibrios.org@4921 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -97,9 +97,9 @@ _DEFUN(_putc_r, (ptr, c, fp),
|
||||
{
|
||||
int result;
|
||||
CHECK_INIT (ptr, fp);
|
||||
_flockfile (fp);
|
||||
_newlib_flockfile_start (fp);
|
||||
result = __sputc_r (ptr, c, fp);
|
||||
_funlockfile (fp);
|
||||
_newlib_flockfile_end (fp);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -111,10 +111,12 @@ _DEFUN(putc, (c, fp),
|
||||
{
|
||||
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
||||
int result;
|
||||
CHECK_INIT (_REENT, fp);
|
||||
_flockfile (fp);
|
||||
result = __sputc_r (_REENT, c, fp);
|
||||
_funlockfile (fp);
|
||||
struct _reent *reent = _REENT;
|
||||
|
||||
CHECK_INIT (reent, fp);
|
||||
_newlib_flockfile_start (fp);
|
||||
result = __sputc_r (reent, c, fp);
|
||||
_newlib_flockfile_end (fp);
|
||||
return result;
|
||||
#else
|
||||
return _putc_r (_REENT, c, fp);
|
||||
|
Reference in New Issue
Block a user