summaryrefslogtreecommitdiff
path: root/worldtime/timezone.h
diff options
context:
space:
mode:
Diffstat (limited to 'worldtime/timezone.h')
-rw-r--r--worldtime/timezone.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/worldtime/timezone.h b/worldtime/timezone.h
index 0770976..328abed 100644
--- a/worldtime/timezone.h
+++ b/worldtime/timezone.h
@@ -1,18 +1,17 @@
#ifndef _TIMEZONE_H
#define _TIMEZONE_H
-#define TZREG "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones"
-#define TZREG_9X "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Time Zones"
-//#define TZREG2 "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation"
+#define TZREG _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones")
+#define TZREG_9X _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Time Zones")
+//#define TZREG2 _T("SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation")
#define MAX_SIZE 512
-#include <vector>
-#include <algorithm>
+#include "common.h"
struct REG_TZI {
- long Bias;
- long StandardBias;
- long DaylightBias;
+ LONG Bias;
+ LONG StandardBias;
+ LONG DaylightBias;
SYSTEMTIME StandardDate;
SYSTEMTIME DaylightDate;
};
@@ -31,10 +30,10 @@ struct LS_TZREG {
unsigned int list_index;
- bool operator<(const LS_TZREG &other);
+ static int compare(const LS_TZREG *p1, const LS_TZREG *p2);
};
-typedef std::vector< LS_TZREG > TimeList;
+typedef OBJLIST< LS_TZREG > TimeList;
extern TimeList timezone_list, geo_timezone_list;
bool build_timezone_list();