File: loadsym.c

package info (click to toggle)
icmake 6.30-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,360 kB
  • ctags: 1,415
  • sloc: ansic: 7,727; makefile: 1,465; sh: 244; asm: 126; cpp: 39
file content (73 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download | duplicates (8)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
                                L O A D S Y M . C

    Load platform specific defines.

    Modify this file to your taste before compiling icmake: new symbols can be
    added by adding a macro block, as the ones defined below, using the name of
    your symbol. If your modification is useful outside of your local computing
    environment, please e-mail frank@icce.rug.nl or karel@icce.rug.nl, and
    we'll be glad to add your suggestion into the next release of icmake.

*/

#include "icm-pp.h"

void loadsym()
{

#ifdef MSDOS
    preload("MSDOS", "1");
#else
    preload("MSDOS", "0");
#endif

#ifdef UNIX
    preload("UNIX", "1");
#else
    preload("UNIX", "0");
#endif

#ifdef unix
    preload("unix", "1");
#else
    preload("unix", "0");
#endif

#ifdef LINUX
    preload("LINUX", "1");
#else
    preload("LINUX", "0");
#endif

#ifdef linux
    preload("linux", "1");
#else
    preload("linux", "0");
#endif

#ifdef M_SYSV
    preload("M_SYSV", "1");
#else
    preload("M_SYSV", "0");
#endif

#ifdef M_UNIX
    preload("M_UNIX", "1");
#else
    preload("M_UNIX", "0");
#endif

#ifdef _POSIX_SOURCE
    preload("_POSIX_SOURCE", "1");
#else
    preload("_POSIX_SOURCE", "0");
#endif

#ifdef __hpux
    preload("__hpux", "1");
#else
    preload("__hpux", "0");
#endif

}