remove \r
[extl.git] / extl / platform_ / unix / config / arch.h
blobfb389767572e87f38479727f154a56cb7b2b065e
1 /* ///////////////////////////////////////////////////////////////////////
2 * File: arch.h
4 * Created: 08.06.26
5 * Updated: 08.11.09
7 * Brief: Unix Architecture
9 * [<Home>]
10 * Copyright (c) 2008-2020, Waruqi All rights reserved.
11 * //////////////////////////////////////////////////////////////////// */
13 #ifndef EXTL_PLATFORM_UNIX_ARCH_H
14 #define EXTL_PLATFORM_UNIX_ARCH_H
16 #ifndef EXTL_PLATFORM_UNIX_CONFIG_H
17 # error This file must be included of extl\platform\unix\config\config.h
18 #endif
20 /* ///////////////////////////////////////////////////////////////////////
21 * Architecture
23 #ifdef EXTL_UNIX_ARCH_IS_INTEL
24 # undef EXTL_UNIX_ARCH_IS_INTEL
25 #endif
27 #ifdef EXTL_UNIX_ARCH_IS_POWERPC
28 # undef EXTL_UNIX_ARCH_IS_POWERPC
29 #endif
31 #ifdef EXTL_UNIX_ARCH_IS_SPARC
32 # undef EXTL_UNIX_ARCH_IS_SPARC
33 #endif
35 #ifdef EXTL_UNIX_ARCH_IS_UNKNOWN
36 # undef EXTL_UNIX_ARCH_IS_UNKNOWN
37 #endif
39 #if defined(__i386__) || \
40 defined(__i386) || \
41 defined(_M_IX86)
42 # define EXTL_UNIX_ARCH_IS_INTEL
43 #elif defined(__ppc__) || \
44 defined(__ppc) || \
45 defined(__POWERPC__)
46 # define EXTL_UNIX_ARCH_IS_POWERPC
47 #elif defined(__sparc__)
48 # define EXTL_UNIX_ARCH_IS_SPARC
49 #else
50 # define EXTL_UNIX_ARCH_IS_UNKNOWN
51 #endif
53 /* //////////////////////////////////////////////////////////////////// */
54 #endif /* EXTL_PLATFORM_UNIX_ARCH_H */
55 /* //////////////////////////////////////////////////////////////////// */