-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathidentify.h
69 lines (46 loc) · 1.38 KB
/
identify.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*********************************************************************
/ Identify.h
/
/ Including this file will define HPUX, SUN, MIPS, or OTHER.
/ (should probably contain VMS, SOLAR, and some others)
/
/ ********************************************************************/
#ifndef IDENTIFY_H
#define IDENTIFY_H
#include <sys/types.h>
#include "config.h"
BEGIN_HEADER
/* HPUX - */
#ifdef _HPUX_SOURCE
# define HPUX
#endif
/*********************************************************************/
/* SUN */
#ifdef sun
# define SUN
#endif
/*********************************************************************/
/* MIPS - */
#ifdef __MIPSEL
# define MIPS
#endif
/*********************************************************************/
/* LINUX - */
#ifdef __linux
# define LINUX
#endif
/*********************************************************************/
/* DJGPP - */
#ifdef __dj_include_sys_types_h_
# define DJGPP
#endif
/*********************************************************************/
/* Catch all for others */
#if !defined(HPUX) && !defined(SUN) && !defined(MIPS)
# if !defined(LINUX) && !defined(DJGPP)
# define OTHER
# endif
#endif
/*********************************************************************/
END_HEADER
#endif /* IDENTIFY_H */