source: trunk/tools/internal/fixcode.h@ 68

Last change on this file since 68 was 68, checked in by Ben Rietbroek, 9 years ago

Minor fixes for building on Linux [v1.1.1-testing]

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File size: 2.2 KB
Line 
1#ifndef __FIXCODE_H__
2#define __FIXCODE_H__
3
4/*
5// OS/2 BLDLEVEL Information.
6*/
7// Vendor
8//~ #define BLDLVL_VENDOR "KIEWITZ"
9//~ #define BLDLVL_VENDOR "RDPe"
10#define BLDLVL_VENDOR "*UNKNOWN*"
11// Version
12#define BLDLVL_MAJOR_VERSION "1"
13#define BLDLVL_MIDDLE_VERSION "1"
14#define BLDLVL_MINOR_VERSION "1"
15// Build date
16#define BLDLVL_YEAR "2017"
17#define BLDLVL_MONTH "03"
18#define BLDLVL_DAY "15"
19// Build time
20//~ #define BLDLVL_HOURS "01"
21//~ #define BLDLVL_MINUTES "01"
22//~ #define BLDLVL_SECONDS "00"
23#define BLDLVL_HOURS "23"
24#define BLDLVL_MINUTES "59"
25#define BLDLVL_SECONDS "59"
26// Build machine
27//~ #define BLDLVL_MACHINE "OS2BLDBOX"
28#define BLDLVL_MACHINE "*UNKNOWN*"
29// Build language
30#define BLDLVL_LANGUAGE "EN"
31
32char bldlevel[] = "@#"\
33 BLDLVL_VENDOR":"\
34 BLDLVL_MAJOR_VERSION"."\
35 BLDLVL_MIDDLE_VERSION"."\
36 BLDLVL_MINOR_VERSION"#@##1## "\
37 BLDLVL_YEAR"/"\
38 BLDLVL_MONTH"/"\
39 BLDLVL_DAY" "\
40 BLDLVL_HOURS":"\
41 BLDLVL_MINUTES":"\
42 BLDLVL_SECONDS" "\
43 BLDLVL_MACHINE"::"\
44 BLDLVL_LANGUAGE"::"\
45 BLDLVL_MINOR_VERSION"::@@"\
46 "Image Embedder for the AiR-BOOT Boot Manager";
47
48#if defined(__DOS__)
49 #define PLATFORM_DOS
50#elif defined(__OS2__) && !defined(OS2)
51 #define PLATFORM_OS2
52#elif defined(__NT__)
53 #define PLATFORM_WINNT
54#elif defined(__LINUX__)
55 #define PLATFORM_LINUX
56#else
57 #error Unsupported platform
58#endif
59
60
61#include <stdlib.h>
62#include <stdio.h>
63#include <string.h>
64
65
66#define IMAGE_SIZE 31744
67//~ #define MBRPROT_SIZE 1024
68#define MBRPROT_SIZE 768
69#define SECSIZE 512
70#define PAGESIZE 256
71
72#endif
Note: See TracBrowser for help on using the repository browser.