VirtualBox

Changeset 95996 in vbox


Ignore:
Timestamp:
Aug 3, 2022 9:54:48 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152774
Message:

iprt/nocrt/time.h: Added localtime_s (microsoft version) prototype. bugref:10261

Location:
trunk/include/iprt/nocrt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nocrt/sys/types.h

    r95975 r95996  
    3434typedef RTDEV   dev_t;
    3535typedef RTINODE ino_t;
     36typedef int     errno_t;
    3637
    3738#endif /* !IPRT_INCLUDED_nocrt_sys_types_h */
  • trunk/include/iprt/nocrt/time.h

    r95975 r95996  
    3131
    3232#include <iprt/types.h>
     33#include <iprt/nocrt/sys/types.h>
    3334
    3435#if defined(RT_OS_WINDOWS) && defined(_USE_32BIT_TIME_T) && ARCH_BITS == 32
     
    5455};
    5556
     57RT_C_DECLS_BEGIN
     58
     59errno_t    RT_NOCRT(localtime_s)(struct tm *, const time_t *); /* The Microsoft version, not the C11 one. */
    5660struct tm *RT_NOCRT(localtime_r)(const time_t *, struct tm *);
     61
     62errno_t    RT_NOCRT(_localtime_s)(struct tm *, const time_t *);
     63struct tm *RT_NOCRT(_localtime_r)(const time_t *, struct tm *);
     64
     65# if !defined(RT_WITHOUT_NOCRT_WRAPPERS) && !defined(RT_WITHOUT_NOCRT_WRAPPER_ALIASES)
     66#  define localtime_s       RT_NOCRT(localtime_s)
     67#  define localtime_r       RT_NOCRT(localtime_r)
     68
     69#  define _localtime_s      RT_NOCRT(localtime_s)
     70#  define _localtime_r      RT_NOCRT(localtime_r)
     71# endif
     72
     73RT_C_DECLS_END
    5774
    5875
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette