2012-03-24 18:41:51 +11:00
|
|
|
/* VERSION.H (c) Copyright Roger Bowler, 1999-2012 */
|
2010-05-11 19:53:53 +00:00
|
|
|
/* HERCULES Emulator Version definition */
|
|
|
|
|
/* */
|
|
|
|
|
/* Released under "The Q Public License Version 1" */
|
|
|
|
|
/* (http://www.hercules-390.org/herclic.html) as modifications to */
|
|
|
|
|
/* Hercules. */
|
2001-02-23 20:49:19 +00:00
|
|
|
|
|
|
|
|
/*-------------------------------------------------------------------*/
|
2003-10-11 23:35:10 +00:00
|
|
|
/* Header file defining the Hercules version number. */
|
|
|
|
|
/* */
|
|
|
|
|
/* NOTE: If you're looking for the place to actually change the */
|
|
|
|
|
/* number, it's in configure.ac, near the top. */
|
2001-02-23 20:49:19 +00:00
|
|
|
/*-------------------------------------------------------------------*/
|
|
|
|
|
|
2005-09-24 16:17:46 +00:00
|
|
|
#ifndef _HERCULES_H_
|
|
|
|
|
#define _HERCULES_H_
|
|
|
|
|
|
|
|
|
|
#include "hercules.h"
|
|
|
|
|
|
|
|
|
|
#ifndef _VERSION_C_
|
|
|
|
|
#ifndef _HUTIL_DLL_
|
|
|
|
|
#define VER_DLL_IMPORT DLL_IMPORT
|
|
|
|
|
#else /* _HUTIL_DLL_ */
|
|
|
|
|
#define VER_DLL_IMPORT extern
|
|
|
|
|
#endif /* _HUTIL_DLL_ */
|
|
|
|
|
#else /* _LOGGER_C_ */
|
|
|
|
|
#define VER_DLL_IMPORT DLL_EXPORT
|
|
|
|
|
#endif /* _LOGGER_C_ */
|
2001-10-08 22:44:10 +00:00
|
|
|
|
2010-05-11 21:17:47 +00:00
|
|
|
#if !defined(VERSION)
|
2010-09-15 01:03:30 +00:00
|
|
|
#if defined(V1) && defined(V2) && defined(V3) && defined(V4)
|
2010-05-11 21:17:47 +00:00
|
|
|
#define VER V1##.##V2##.##V3##.##V4
|
2011-09-20 12:25:21 +00:00
|
|
|
#define VERSION QSTR(VER)
|
2010-05-11 21:17:47 +00:00
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2010-12-08 07:59:03 +00:00
|
|
|
/*
|
|
|
|
|
Some modules, such as dyngui, might need these values,
|
|
|
|
|
since they are ALWAYS numeric whereas VERSION is not.
|
|
|
|
|
*/
|
2010-12-08 23:36:10 +00:00
|
|
|
#if defined( _MSVC_ ) && (!defined(V1) || !defined(V2) || !defined(V3) || !defined(V4))
|
2011-04-10 04:35:42 +00:00
|
|
|
#error "VERSION not defined properly"
|
2010-12-08 07:59:03 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
The 'VERSION' string can be any value the user wants.
|
|
|
|
|
*/
|
2001-02-23 20:49:19 +00:00
|
|
|
#if !defined(VERSION)
|
2005-09-24 16:17:46 +00:00
|
|
|
#ifndef _MSVC_
|
|
|
|
|
#warning No version specified
|
|
|
|
|
#else
|
2011-09-20 12:11:17 +00:00
|
|
|
WARNING("No version specified")
|
2005-09-24 16:17:46 +00:00
|
|
|
#endif
|
|
|
|
|
#define VERSION "(unknown!)"
|
|
|
|
|
#define CUSTOM_BUILD_STRING "('VERSION' was not defined!)"
|
2001-02-23 20:49:19 +00:00
|
|
|
#endif
|
2001-03-16 02:41:28 +00:00
|
|
|
|
2003-06-15 12:45:41 +00:00
|
|
|
#define HDL_VERS_HERCULES VERSION
|
|
|
|
|
#define HDL_SIZE_HERCULES sizeof(VERSION)
|
|
|
|
|
|
2005-09-24 16:17:46 +00:00
|
|
|
VER_DLL_IMPORT void display_version(FILE *f, char *prog, const char verbose);
|
2005-12-20 17:43:05 +00:00
|
|
|
VER_DLL_IMPORT void display_version_2(FILE *f, char *prog, const char verbose,int httpfd);
|
2005-09-24 16:17:46 +00:00
|
|
|
VER_DLL_IMPORT int get_buildinfo_strings(const char*** pppszBldInfoStr);
|
2001-03-16 02:41:28 +00:00
|
|
|
|
|
|
|
|
#define HERCULES_COPYRIGHT \
|
2013-05-24 01:32:27 -07:00
|
|
|
"(c) Copyright 1999-2013 by Roger Bowler, Jan Jaeger, and others"
|
2005-09-24 16:17:46 +00:00
|
|
|
#endif // _HERCULES_H_
|