8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
firebird-mirror/src/jrd/license.h

152 lines
4.4 KiB
C
Raw Normal View History

2001-05-23 15:26:42 +02:00
/*
* PROGRAM: JRD Access Method
* MODULE: license.h
* DESCRIPTION: Internal licensing parameters
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy
* of the License at http://www.Inprise.com/IPL.html
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
* or implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code was created by Inprise Corporation
* and its predecessors. Portions created by Inprise Corporation are
* Copyright (C) Inprise Corporation.
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
2007-03-10 11:49:39 +01:00
*
2001-05-23 15:26:42 +02:00
* Revision 1.5 2000/12/08 16:18:21 fsg
* Preliminary changes to get IB_BUILD_NO automatically
* increased on commits.
*
* setup_dirs will create 'jrd/build_no.h' by a call to
* a slightly modified 'builds_win32/original/build_no.ksh'
* that gets IB_BUILD_NO from 'this_build', that hopefully
* will be increased automatically in the near future :-)
*
* I have changed 'jrd/iblicense.h' to use IB_BUILD_TYPE
* from 'jrd/build_no.h'.
* So all changes to version numbers, build types etc. can
* now be done in 'builds_win32/original/build_no.ksh'.
*
2002-02-16 04:33:53 +01:00
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "MAC" port
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "EPSON" port
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "XENIX" port
2002-02-16 04:05:21 +01:00
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "DELTA" port
2002-02-16 04:27:33 +01:00
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "IMP" port
2002-02-16 04:33:53 +01:00
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "NCR3000" port
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "M88K" port
* 2002.02.15 Sean Leyne - Code Cleanup, removed obsolete "HP9000 s300" port
*
* 2002.10.27 Sean Leyne - Completed removal of obsolete "DG_X86" port
* 2002.10.27 Sean Leyne - Code Cleanup, removed obsolete "UNIXWARE" port
* 2002.10.27 Sean Leyne - Code Cleanup, removed obsolete "Ultrix" port
* 2002.10.27 Sean Leyne - Code Cleanup, removed obsolete "Ultrix/MIPS" port
* 2002.10.27 Sean Leyne - Code Cleanup, removed obsolete "ALPHA_NT" port
*
2002-10-29 03:45:09 +01:00
* 2002.10.28 Sean Leyne - Completed removal of obsolete "DGUX" port
* 2002.10.28 Sean Leyne - Code cleanup, removed obsolete "DecOSF" port
* 2002.10.28 Sean Leyne - Code cleanup, removed obsolete "SGI" port
* 2002.10.28 Sean Leyne - Completed removal of obsolete "HP700" port
2002-10-29 03:45:09 +01:00
*
2002-10-30 07:40:58 +01:00
* 2002.10.29 Sean Leyne - Removed obsolete "Netware" port
*
* 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
2002-10-31 06:33:35 +01:00
* 2002.10.30 Sean Leyne - Code Cleanup, removed obsolete "SUN3_3" port
*
2001-05-23 15:26:42 +02:00
*/
#ifndef JRD_LICENSE_H
#define JRD_LICENSE_H
2001-05-23 15:26:42 +02:00
#include "../jrd/build_no.h"
#include "../jrd/isc_version.h"
2001-05-23 15:26:42 +02:00
2007-11-12 16:18:49 +01:00
#ifdef HPUX
2009-04-10 17:36:58 +02:00
#define FB_PLATFORM "HU"
2001-05-23 15:26:42 +02:00
#endif
#ifdef __sun
2001-05-23 15:26:42 +02:00
#ifdef sparc
#ifdef SOLARIS
#define FB_PLATFORM "SO"
#else
#define FB_PLATFORM "S4"
2009-11-27 09:34:34 +01:00
#endif // Solaris
#endif // Sparc
2001-05-23 15:26:42 +02:00
#ifdef i386
#define FB_PLATFORM "SI"
2009-11-27 09:34:34 +01:00
#endif // i386
2008-04-25 11:42:19 +02:00
#ifdef AMD64
#define FB_PLATFORM "SI"
#endif
2001-05-23 15:26:42 +02:00
#ifndef FB_PLATFORM
#define FB_PLATFORM "S3"
#endif
2009-11-27 09:34:34 +01:00
#endif // __sun
2001-05-23 15:26:42 +02:00
#ifdef AIX
#ifdef AIX_PPC
#define FB_PLATFORM "PA"
2008-11-01 13:19:28 +01:00
#else
#define FB_PLATFORM "IA"
2001-05-23 15:26:42 +02:00
#endif
2009-11-27 09:34:34 +01:00
#endif // aix
2001-05-23 15:26:42 +02:00
#ifdef WIN_NT
#ifdef i386
#define FB_PLATFORM "WI"
#else
#define FB_PLATFORM "NP"
2009-11-27 09:34:34 +01:00
#endif // i386
2001-05-23 15:26:42 +02:00
#endif
#ifdef LINUX
2023-03-31 09:13:48 +02:00
#if defined(__loongarch__)
#define FB_PLATFORM "LL" // Linux/LoongArch
#else
2009-11-27 09:34:34 +01:00
#define FB_PLATFORM "LI" // Linux on Intel
2001-05-23 15:26:42 +02:00
#endif
2023-03-31 09:13:48 +02:00
#endif
2001-05-23 15:26:42 +02:00
#ifdef FREEBSD
2009-11-27 09:34:34 +01:00
#define FB_PLATFORM "FB" // FreeBSD/i386
2001-05-23 15:26:42 +02:00
#endif
#ifdef NETBSD
2009-11-27 09:34:34 +01:00
#define FB_PLATFORM "NB" // NetBSD
2001-05-23 15:26:42 +02:00
#endif
2001-07-12 07:46:06 +02:00
#ifdef DARWIN
2008-01-18 15:12:26 +01:00
#if defined(i386) || defined(__x86_64__)
2009-11-27 09:34:34 +01:00
#define FB_PLATFORM "UI" // Darwin/Intel
2007-03-09 11:32:58 +01:00
#endif
2008-06-09 14:02:59 +02:00
#if defined(__ppc__) || defined(__ppc64__)
2009-11-27 09:34:34 +01:00
#define FB_PLATFORM "UP" // Darwin/PowerPC
2007-03-09 11:32:58 +01:00
#endif
#if defined(ARM) || defined(__aarch64__)
#define FB_PLATFORM "UA" // Darwin/ARM
#endif
2015-10-05 03:25:39 +02:00
#endif
2001-07-12 07:46:06 +02:00
#ifdef DEV_BUILD
#define FB_DEV_VERSION "-dev"
#else
#define FB_DEV_VERSION ""
#endif
2002-06-29 15:33:52 +02:00
#ifndef FB_VERSION
#define FB_VERSION FB_PLATFORM "-" FB_BUILD_TYPE FB_MAJOR_VER "." FB_MINOR_VER "." FB_REV_NO "." FB_BUILD_NO FB_DEV_VERSION " " FB_BUILD_SUFFIX
2002-06-29 15:33:52 +02:00
#endif
2001-07-12 07:46:06 +02:00
2003-06-08 15:13:25 +02:00
#ifndef ISC_VERSION
#define ISC_VERSION FB_PLATFORM "-" FB_BUILD_TYPE ISC_MAJOR_VER "." ISC_MINOR_VER "." FB_REV_NO "." FB_BUILD_NO " " FB_BUILD_SUFFIX
2001-05-23 15:26:42 +02:00
#endif
2009-11-27 09:34:34 +01:00
#endif // JRD_LICENSE_H