| 1 | #ifndef TKZ_ABI_IMPL_H | ||
| 2 | #define TKZ_ABI_IMPL_H | ||
| 3 | |||
| 4 | /* Zone ids and transition times are 64-bit on every perl, 32-bit ones | ||
| 5 | * included: refuse to build where int64_t is not eight bytes. */ | ||
| 6 | typedef char tkz_int64_is_eight_bytes[sizeof(int64_t) == 8 ? 1 : -1]; | ||
| 7 | |||
| 8 | 1 | static const char *tkz_abi_tzdata_version(void) { return TKZ_TZDATA_VERSION; } | |
| 9 | 2 | static int tkz_abi_zone_count(void) { return TKZ_LOOKUP_COUNT; } | |
| 10 | |||
| 11 | static const tkz_abi TKZ_ABI = { | ||
| 12 | TKZ_ABI_VERSION, | ||
| 13 | tkz_lookup_name, | ||
| 14 | tkz_id_name, | ||
| 15 | tkz_id_canonical, | ||
| 16 | tkz_id_is_link, | ||
| 17 | tkz_offset_at, | ||
| 18 | tkz_next_change, | ||
| 19 | tkz_resolve_local, | ||
| 20 | tkz_local_zone, | ||
| 21 | tkz_abi_tzdata_version, | ||
| 22 | tkz_abi_zone_count, | ||
| 23 | tkz_prev_change, | ||
| 24 | tkz_resolve_local_all, | ||
| 25 | tkz_standard_offset_at, | ||
| 26 | tkz_country_of, | ||
| 27 | tkz_windows_name | ||
| 28 | }; | ||
| 29 | |||
| 30 | #endif |