Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tzset not defined on all platforms #16

Open
vervaekejonathan opened this issue Jul 18, 2017 · 2 comments
Open

tzset not defined on all platforms #16

vervaekejonathan opened this issue Jul 18, 2017 · 2 comments

Comments

@vervaekejonathan
Copy link

vervaekejonathan commented Jul 18, 2017

tzset was not defined on my platform

#if __POSIX_VISIBLE
_VOID _EXFUN(tzset, (_VOID));
#endif
_VOID _EXFUN(_tzset_r, (struct _reent *));

Fixed by using _tzset_r instead of tzset

@schwern
Copy link
Collaborator

schwern commented Jul 24, 2017

Thanks for the info. What is your platform? Operating system and compiler, please. Including versions.

@VTiTux
Copy link

VTiTux commented Jan 9, 2019

Same issue.
I defined HAS_TZ in addition to HAS_GMTIME_R, HAS_LOCALTIME_R and HAS_TIMEGM.
Microchip compiler XC32 v1.40, for PIC devices.
TZ is available with the "Legacy libc" but not with the default microchip lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants