-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathversion.h
71 lines (61 loc) · 2.8 KB
/
version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/* VERSION.H (c) Copyright Roger Bowler, 1999-2012 */
/* HERCULES Emulator Version definition */
/* */
/* Released under "The Q Public License Version 1" */
/* (http://www.hercules-390.org/herclic.html) as modifications to */
/* Hercules. */
/*-------------------------------------------------------------------*/
/* 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. */
/*-------------------------------------------------------------------*/
#ifndef _HERCULES_H_
#define _HERCULES_H_
#include "hercules.h"
/* What follows is a relatively ugly kludge to let the Windows build */
/* catch up gracefully to the recent enhancements to the open source */
/* build. */
/* Note: for CMake builds, _dynamic_version is replaced by #defines */
/* in config.h */
#if defined(_MSVC_) && !defined(HAVE_CONFIG_H)
#include "_dynamic_version.h"
#endif /* _MSVC_ */
#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_ */
#if !defined(VERSION)
#if defined(VERS_MAJ) && defined(VERS_INT) && defined(VERS_MIN) && defined(VERS_BLD)
#define VER VERS_MAJ##.##VERS_INT##.##VERS_MIN##.##VERS_BLD
#define VERSION QSTR(VER)
#endif
#endif
#if defined( _MSVC_ )
/* Some modules, such as dyngui, might need these values,
since they are ALWAYS numeric whereas VERSION is not. */
#if !defined(VERS_MAJ) || !defined(VERS_INT) || !defined(VERS_MIN) || !defined(VERS_BLD)
#error "VERSION not defined properly"
#endif
#endif
/*
The 'VERSION' string can be any value the user wants.
*/
#if !defined(VERSION)
WARNING("No version specified")
#define VERSION "0.0.0.0-(unknown!)" /* ensure a numeric unknown version */
#define CUSTOM_BUILD_STRING "('VERSION' was not defined!)"
#endif
#define HDL_VERS_HERCULES VERSION
#define HDL_SIZE_HERCULES sizeof(VERSION)
VER_DLL_IMPORT void display_version ( FILE* f, int httpfd, char* prog );
VER_DLL_IMPORT void display_build_options ( FILE* f, int httpfd );
VER_DLL_IMPORT int get_buildinfo_strings ( const char*** pppszBldInfoStr );
#define HERCULES_COPYRIGHT \
"(C) Copyright 1999-2016 by Roger Bowler, Jan Jaeger, and others"
#endif // _HERCULES_H_