> I tried getting rid of the
>
> #undef gmtime
> #undef localtime
>
> as well as the
>
> using ::gmtime
> using ::localtime
>
> which got rid of the error I mentioned, but led to issues inside the
> code I was trying to port which used localtime, so it feels like that
> wasn't the best approach.
>
> Any help would be greatly appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
>
void ctime_test_func(char out[64])
{
if (out) {
// get current time in seconds from 1970.1.1
time_t current = time(NULL);
char * p = ctime(¤t);
if (p) {
strcpy(out, p);