fix paths.
[AROS.git] / compiler / include / proto / execlock.h
blob3fb64d98b041532363bbdbdca51ec662ff624677
1 #ifndef PROTO_EXECLOCK_H
2 #define PROTO_EXECLOCK_H
4 /*
5 Copyright © 2017, The AROS Development Team. All rights reserved.
6 */
8 #include <exec/types.h>
9 #include <aros/system.h>
11 #include <clib/execlock_protos.h>
13 #ifndef __EXECLOCK_RELLIBBASE__
14 #if !defined(__NOLIBBASE__) && !defined(__EXECLOCK_NOLIBBASE__)
15 #if !defined(ExecLockBase)
16 #ifdef __EXECLOCK_STDLIBBASE__
17 extern struct Library *ExecLockBase;
18 #else
19 extern struct Library *ExecLockBase;
20 #endif
21 #endif
22 #endif
23 #ifndef __aros_getbase_ExecLockBase
24 #define __aros_getbase_ExecLockBase() (ExecLockBase)
25 #endif
26 #else /* __EXECLOCK_RELLIBASE__ */
27 extern const IPTR __aros_rellib_offset_ExecLockBase;
28 #define AROS_RELLIB_OFFSET_EXECLOCK __aros_rellib_offset_ExecLockBase
29 #define AROS_RELLIB_BASE_EXECLOCK __aros_rellib_base_ExecLockBase
30 #ifndef __aros_getbase_ExecLockBase
31 #ifndef __aros_getoffsettable
32 char *__aros_getoffsettable(void);
33 #endif
34 #define __aros_getbase_ExecLockBase() (*(struct Library **)(__aros_getoffsettable()+__aros_rellib_offset_ExecLockBase))
35 #endif
36 #endif
38 #if !defined(NOLIBINLINE) && !defined(EXECLOCK_NOLIBINLINE) && !defined(__EXECLOCK_RELLIBBASE__)
39 # include <inline/execlock.h>
40 #elif !defined(NOLIBDEFINES) && !defined(EXECLOCK_NOLIBDEFINES)
41 # include <defines/execlock.h>
42 #endif
44 #endif /* PROTO_EXECLOCK_H */