mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-03 10:59:20 +00:00
33 lines
841 B
C
33 lines
841 B
C
//--------------------------------------------------------------------------//
|
|
// This file is in the public domain, so clarified as of //
|
|
// 2009-05-17 by Arthur David Olson. //
|
|
//--------------------------------------------------------------------------//
|
|
#include "compiler.h"
|
|
#include "lib_mem.h"
|
|
#include "time_proto.h"
|
|
//--------------------------------------------------------------------------//
|
|
|
|
void gmtcheck(void)
|
|
{
|
|
static bool gmt_is_set;
|
|
|
|
if (lock() != 0) {
|
|
return;
|
|
}
|
|
|
|
if (!gmt_is_set) {
|
|
|
|
gmtptr = (struct state*)allocmem(sizeof(struct state));
|
|
|
|
if (gmtptr) {
|
|
gmtload(gmtptr);
|
|
}
|
|
|
|
gmt_is_set = true;
|
|
}
|
|
|
|
unlock();
|
|
}
|
|
|
|
//--------------------------------------------------------------------------//
|