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

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

Reworked Build Environment [2012-02-15]

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 Reworked build environment
o Start made with coding FIXCODE in C
o Moved MBR protection image
o New overlap macro
o Protect type 0x35 from edit (user popup)
o Protect type 0x35 from adding to menu (user popup)
o More...
! No LVM Label change yet

Note

o Changed license to GPL v3

See file COPYING in trunk.

File size: 590 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 INCL_NOPMAPI
9 #define INCL_BASE
10 #define INCL_DOS
11 #define INCL_DOSDEVIOCTL
12 #include <os2.h>
13 #define PLATFORM_OS2
14#elif defined(__NT__)
15 #include <windows.h>
16 #define PLATFORM_WINNT
17#elif defined(__LINUX__)
18 #define PLATFORM_LINUX
19#else
20 #error Unsupported platform
21#endif
22
23#include <stdlib.h>
24#include <stdio.h>
25#include <string.h>
26
27
28
29
30
31
32
33
34
35
36
37#endif
38
39
40
41
42
43
Note: See TracBrowser for help on using the repository browser.