config: fix build with external compiler by passing the sysroot where needed
[AROS.git] / arch / .unmaintained / morphos / Include / aros / options.h
blob558bed5e871098d348d176bd1ce18069f72ac19e
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #pragma pack(2)
7 #ifndef AROS_OPTIONS_H
8 #define AROS_OPTIONS_H
10 /******************************************************************************
12 FILE
13 $Id$
15 DESCRIPTION
16 This files defines a couple of options which change the way
17 the OS is compiled.
19 ******************************************************************************/
21 /* Should the system compile a working SetFunction()-call? If you
22 enable this, "real" shared libraries (with LVOs and the like)
23 will be generated and all Functions will be called via LVOs.
24 If you disable this, all functions will be called somewhat more
25 directly. To enable the option, change the 0 to 1. */
26 #ifndef EnableSetFunction
27 # define EnableSetFunction 1
28 #endif
29 #if EnableSetFunction
30 # define UseLVOs 1
31 #endif
33 /* Should the OS use registerized arguments or pass the arguments on
34 stack? */
35 #ifndef UseRegisterArgs
36 # define UseRegisterArgs 0
37 #endif
39 /* Should the OS be compiled with macros that call the actual function
40 and with the library base as first parameter or should the library
41 base be a global variable (shared by all functions). */
42 #ifndef LibBaseShouldBeAParameter
43 # define LibBaseShouldBeAParameter 1
44 #endif
46 /* Should the OS be compiled with LVO tables or should the functions
47 be called directly? Note that this is superseeded by
48 EnableSetFunction. */
49 #ifndef UseLVOs
50 # define UseLVOs 0
51 #endif
53 /* If the following is defined, errnos from unix function-calls that could not
54 be interpreted as AROS error numbers (ERROR_* defined in <dos/dos.h> are
55 passed back via SetIoErr(). The errno is incremented by the value of this
56 define. Note that this value should generate unique error numbers! Note
57 also that Fault() checks, whether an error-number is in fact an errno, by
58 AND'ing this value to the error number! The recommended value is 0x40000000
59 (ie only the 30th bit set).
61 If this is defined to 0, the errno will not be passed through. Instead
62 ERROR_UNKNOWN is returned, if the errno could not be interpreted.
64 On AROS systems without any Unix emulation (ie every system without
65 underlying POSIX-compatible operating system), this should be set to 0 to
66 simplify the resulting code. */
67 #ifndef PassThroughErrnos
68 # define PassThroughErrnos 0
69 /* # define PassThroughErrnos 0x40000000 */
70 #endif
72 /******************************************************************************
73 ***** END aros/options.h
74 ******************************************************************************/
76 #endif /* AROS_OPTIONS_H */
78 #pragma pack()