Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
#define ret_ERRVAL PSEUDO_RET_NOERRNO
-#if NOT_IN_libc
+#if defined NOT_IN_libc
# define SYSCALL_ERROR __local_syscall_error
# ifdef RTLD_PRIVATE_ERRNO
# define SYSCALL_ERROR_HANDLER \
# elif defined _LIBC_REENTRANT
-# if USE___THREAD
+# if defined USE___THREAD
# ifndef NOT_IN_libc
# define SYSCALL_ERROR_ERRNO __libc_errno
# else
# elif defined _LIBC_REENTRANT
-# if USE___THREAD
+# if defined USE___THREAD
# ifndef NOT_IN_libc
# define SYSCALL_ERROR_ERRNO __libc_errno
#define ret_ERRVAL retw
-#if RTLD_PRIVATE_ERRNO
+#if defined RTLD_PRIVATE_ERRNO
# define SYSCALL_ERROR_HANDLER \
0: movi a4, rtld_errno; \
neg a2, a2; \
#elif defined _LIBC_REENTRANT
-# if USE___THREAD
+# if defined USE___THREAD
# ifndef NOT_IN_libc
# define SYSCALL_ERROR_ERRNO __libc_errno
# else