-
Notifications
You must be signed in to change notification settings - Fork 8
/
compilerenvironment.h
53 lines (41 loc) · 1.4 KB
/
compilerenvironment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _COMPILER_ENVIRONMENT_H_
#define _COMPILER_ENVIRONMENT_H_
// - Comment ------------------------------------------
// This block of precompiler directives are intended
// to ensure that the compiler environment is
// 'correctly' defined.
// This program must be compiled using a C++ compiler.
#ifndef __cplusplus
#error A C++ compiler is required to compile this project.
#endif
// Define the lowest version of CE this project is intended for.
#define TARGET_VERSION 300
// Ensure that the compiler is compiling for
// CE and then the correct version of CE.
#ifndef _WINDOWS
#if (!defined(_WIN32_WCE) || (_WIN32_WCE < TARGET_VERSION))
#error This program was not intended for use on your chosen platform, and will not compile
#endif
#endif
// Exclude unrequired Windows functionality.
#ifndef STRICT
#define STRICT
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
// Disable some warnings.
#pragma warning (disable:4100 4201 4238 4244 4514 4800)
#ifndef NOT_FINAL_BUILD
#pragma warning (error:4101 4189 4245)
#endif
// Define the project we are building.
#define SPEEDBALL 001
#define PROJECTX 002
#define POPULOUS 003
#define PROJECT POPULOUS
// - Observations -------------------------------------
// 1. Use CompareString() for case-insensitive string
// comparisons and wcsncmp() for case-sensitive ones.
// 2. Don't use relative paths.
#endif