Rev | Line | |
---|
[37] | 1 | #ifndef __FIXCODE_H__
|
---|
| 2 | #define __FIXCODE_H__
|
---|
| 3 |
|
---|
[64] | 4 | /*
|
---|
[70] | 5 | // Include the version information for BLDLEVEL.
|
---|
| 6 | // This information is common to all built executables.
|
---|
[64] | 7 | */
|
---|
[70] | 8 | #include "../../include/version.h"
|
---|
[37] | 9 |
|
---|
[64] | 10 | char bldlevel[] = "@#"\
|
---|
| 11 | BLDLVL_VENDOR":"\
|
---|
| 12 | BLDLVL_MAJOR_VERSION"."\
|
---|
| 13 | BLDLVL_MIDDLE_VERSION"."\
|
---|
| 14 | BLDLVL_MINOR_VERSION"#@##1## "\
|
---|
| 15 | BLDLVL_YEAR"/"\
|
---|
| 16 | BLDLVL_MONTH"/"\
|
---|
| 17 | BLDLVL_DAY" "\
|
---|
| 18 | BLDLVL_HOURS":"\
|
---|
| 19 | BLDLVL_MINUTES":"\
|
---|
| 20 | BLDLVL_SECONDS" "\
|
---|
| 21 | BLDLVL_MACHINE"::"\
|
---|
| 22 | BLDLVL_LANGUAGE"::"\
|
---|
| 23 | BLDLVL_MINOR_VERSION"::@@"\
|
---|
| 24 | "Image Embedder for the AiR-BOOT Boot Manager";
|
---|
| 25 |
|
---|
[37] | 26 | #if defined(__DOS__)
|
---|
| 27 | #define PLATFORM_DOS
|
---|
| 28 | #elif defined(__OS2__) && !defined(OS2)
|
---|
| 29 | #define PLATFORM_OS2
|
---|
| 30 | #elif defined(__NT__)
|
---|
| 31 | #define PLATFORM_WINNT
|
---|
| 32 | #elif defined(__LINUX__)
|
---|
| 33 | #define PLATFORM_LINUX
|
---|
| 34 | #else
|
---|
| 35 | #error Unsupported platform
|
---|
| 36 | #endif
|
---|
| 37 |
|
---|
[46] | 38 |
|
---|
[37] | 39 | #include <stdlib.h>
|
---|
| 40 | #include <stdio.h>
|
---|
| 41 | #include <string.h>
|
---|
| 42 |
|
---|
| 43 |
|
---|
[46] | 44 | #define IMAGE_SIZE 31744
|
---|
[51] | 45 | //~ #define MBRPROT_SIZE 1024
|
---|
| 46 | #define MBRPROT_SIZE 768
|
---|
[46] | 47 | #define SECSIZE 512
|
---|
[51] | 48 | #define PAGESIZE 256
|
---|
[37] | 49 |
|
---|
| 50 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.