source: trunk/TOOLS/INTERNAL/FIXCODE.H@ 46

Last change on this file since 46 was 46, checked in by Ben Rietbroek, 11 years ago

Various Changes [2012-04-14]

WARNING!!

All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can DESTROY THE MBR on ALL ATTACHED DISKS!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE THESE COMMITS!!

Changes

o Added BLDLEVEL support
o Enhanced Master Make
o Sanitized sources
o Support for Wasm and Masm6 (experimental)
o Renamed MBR_PROT.ASM to MBR-PROT.ASM
o Merged bitfield code Into Installer
o First steps for cross platform Installer
o More...

File size: 517 bytes
Line 
1#ifndef __FIXCODE_H__
2#define __FIXCODE_H__
3
4
5#if defined(__DOS__)
6 #define PLATFORM_DOS
7#elif defined(__OS2__) && !defined(OS2)
8 #define PLATFORM_OS2
9#elif defined(__NT__)
10 #define PLATFORM_WINNT
11#elif defined(__LINUX__)
12 #define PLATFORM_LINUX
13#else
14 #error Unsupported platform
15#endif
16
17
18#include <stdlib.h>
19#include <stdio.h>
20#include <string.h>
21
22
23#define IMAGE_SIZE 31744
24#define MBRPROT_SIZE 1024
25#define SECSIZE 512
26
27#endif
Note: See TracBrowser for help on using the repository browser.