140 lines
3.5 KiB
C
140 lines
3.5 KiB
C
#ifndef TZ_VERSION_H
|
|
#define TZ_VERSION_H
|
|
#if defined(__amiga__) || defined(__AMIGA__) || defined(__amigaos4__) || \
|
|
defined(__morphos__) || defined(__MORPHOS__) || defined(__aros__) || \
|
|
defined(__AROS__) || defined(AOS3) || defined(AOS4) || defined(AROS) || \
|
|
defined(MORPHOS)
|
|
|
|
#ifndef __amiga__
|
|
# define __amiga__
|
|
#endif
|
|
#ifdef __AMIGA__
|
|
# ifndef AOS3
|
|
# define AOS3
|
|
# endif
|
|
#endif
|
|
#ifdef __AROS__
|
|
# ifndef AROS
|
|
# define AROS
|
|
# endif
|
|
#endif
|
|
#ifdef __MORPHOS__
|
|
# ifndef MORPHOS
|
|
# define MORPHOS
|
|
# endif
|
|
#endif
|
|
#ifdef __amigaos4__
|
|
# ifndef AOS4
|
|
# define AOS4
|
|
# endif
|
|
#endif
|
|
|
|
#if defined(AOS3)
|
|
# define HAVE_ADJTIME 0
|
|
# define HAVE_LINK 0
|
|
# define HAVE_SYMLINK 0
|
|
# define HAVE_SYS_STAT_H 0
|
|
# define HAVE_INTTYPES_H 0
|
|
# define HAVE_TIME_T 1
|
|
# define HAVE_TIMEVAL 1
|
|
# define HAVE_STDINT_H 1
|
|
# define INITCLEAN 1
|
|
# define AVOID_TIMEOFDAY 1
|
|
// assume 64 bit compiler
|
|
# ifndef __LONG_LONG_MAX__
|
|
# define __LONG_LONG_MAX__ 0x7fffffffffffffffLL
|
|
# endif
|
|
# define strtoimax strtoll
|
|
#endif
|
|
|
|
#if defined(AROS)
|
|
# define HAVE_ADJTIME 0
|
|
# define HAVE_STDINT_H 0
|
|
# define HAVE_LINK 0
|
|
# define HAVE_SYMLINK 0
|
|
# define HAVE_STRFTIME_L 0
|
|
# define HAVE_TIME_T 1
|
|
# define HAVE_TIMEVAL 1
|
|
# define INITCLEAN 1
|
|
# define AVOID_TIMEOFDAY 1
|
|
#endif
|
|
|
|
#include <exec/io.h>
|
|
#include <exec/types.h>
|
|
#include <exec/memory.h>
|
|
#include <exec/devices.h>
|
|
#include <devices/timer.h>
|
|
#include <intuition/intuition.h>
|
|
#include <intuition/gadgetclass.h>
|
|
#include <libraries/gadtools.h>
|
|
#include <proto/timer.h>
|
|
#include <proto/battclock.h>
|
|
#include <clib/dos_protos.h>
|
|
#include <clib/alib_protos.h>
|
|
#include <clib/exec_protos.h>
|
|
#include <clib/timer_protos.h>
|
|
#include <clib/locale_protos.h>
|
|
#include <clib/utility_protos.h>
|
|
#include <clib/gadtools_protos.h>
|
|
#include <clib/intuition_protos.h>
|
|
#include <clib/battclock_protos.h>
|
|
#include <resources/battclock.h>
|
|
|
|
#include "clib/timezone.h"
|
|
#include "inline/timezone.h"
|
|
|
|
#define OPEN_ERROR "Cannot open %s.\n"
|
|
#define OPEN_VER_ERROR "Cannot open %s (%ld.0)\n"
|
|
|
|
#define INTUILIB_NAME "intuition.library"
|
|
#define INTUILIB_REV 37L
|
|
#define GADTOOLLIB_NAME "gadtools.library"
|
|
#define GADTOOLLIB_REV 37L
|
|
#define UTILLIB_NAME "utility.library"
|
|
#define UTILLIB_REV 37L
|
|
#define LOCALELIB_NAME "locale.library"
|
|
#define LOCALELIB_REV 37L
|
|
#define DOSLIB_NAME "dos.library"
|
|
#define DOSLIB_REV 37L
|
|
#define TIMEZONELIB_NAME "timezone.library"
|
|
#define TIMEZONELIB_REV 5L
|
|
#define TIMER_NAME TIMERNAME
|
|
#define BATTCLOCK_NAME BATTCLOCKNAME
|
|
#define PUBSCREEN_NAME "PubScreen"
|
|
#define ENVSIZE 128
|
|
#ifdef AOS3
|
|
# define IPTR APTR
|
|
#endif
|
|
#ifdef AROS
|
|
# define _STDC_TIME_H_
|
|
# include <ctype.h>
|
|
#endif
|
|
|
|
#define XSTR(s) STR(s)
|
|
#define STR(s) #s
|
|
#define VERSION_NO 5
|
|
#define VERSION XSTR(VERSION_NO)
|
|
#define REVISION_NO 00
|
|
#define REVISION XSTR(REVISION_NO)
|
|
#define DATE "15.10.2016"
|
|
#define PACKAGE_TZ "tzcode"
|
|
#define VERSION_TZ "2016g"
|
|
#define BUGEMAIL_TZ "cs@innolan.dk"
|
|
#define AMIGA_VERSION " " VERSION "." REVISION " (" DATE ") " \
|
|
PACKAGE_TZ " " VERSION_TZ
|
|
|
|
#define AMIGA_VERSION_STRING "\0$VER: " PROG_NAME AMIGA_VERSION;
|
|
|
|
static char const PKGVERSION[] = "(" PACKAGE_TZ ")";
|
|
static char const TZVERSION[] = VERSION_TZ;
|
|
static char const REPORT_BUGS_TO[] = BUGEMAIL_TZ;
|
|
|
|
struct Library *DOSBase;
|
|
struct Library *TimezoneBase;
|
|
|
|
int amiga_open_libs();
|
|
long long int strtoll(const char *nptr, char **endptr, int base);
|
|
|
|
#endif
|
|
#endif
|