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:
@@ -53,8 +53,10 @@ struct tm *
|
||||
_DEFUN (localtime, (tim_p),
|
||||
_CONST time_t * tim_p)
|
||||
{
|
||||
_REENT_CHECK_TM(_REENT);
|
||||
return localtime_r (tim_p, (struct tm *)_REENT_TM(_REENT));
|
||||
struct _reent *reent = _REENT;
|
||||
|
||||
_REENT_CHECK_TM(reent);
|
||||
return localtime_r (tim_p, (struct tm *)_REENT_TM(reent));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user