1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-22 01:13:54 +00:00
Files
amiga-tz/library/time_gmtcheck.c
2015-07-29 20:14:38 +02:00

30 lines
685 B
C

//--------------------------------------------------------------------------//
// This file is in the public domain, so clarified as of //
// 2009-05-17 by Arthur David Olson. //
//--------------------------------------------------------------------------//
#include "time_header.h"
void gmtcheck(void)
{
static bool gmt_is_set;
if (lock() != 0) {
return;
}
if (!gmt_is_set) {
gmtptr = (struct state*)
AllocMem(sizeof(struct state), MEMF_PUBLIC | MEMF_CLEAR);
if (gmtptr) {
gmtload(gmtptr);
}
gmt_is_set = true;
}
unlock();
}