* from: @(#)ansi.h 8.2 (Berkeley) 1/4/94
*/
-
#ifndef _ANSI_H_
#define _ANSI_H_
* #endif
*/
#define _BSD_CLOCK_T_ unsigned int /* clock() */
+#if defined(__minix)
+/* To change this, this require also changing the defintion of size_t in GCC,
+ * and to adapt the following headers: int_fmt.h, int_types.h */
#define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */
#define _BSD_SIZE_T_ unsigned int /* sizeof() */
#define _BSD_SSIZE_T_ int /* byte count or error */
+#endif /* defined(__minix) */
#define _BSD_TIME_T_ __int64_t /* time() */
#define _BSD_CLOCKID_T_ int /* clockid_t */
#define _BSD_TIMER_T_ int /* timer_t */
#define ASENTRY_NP(y) _ENTRY(_ASM_LABEL(y))
#define ASEND(y) _END(_ASM_LABEL(y))
-#if defined(__minix)
-#define _LABEL(x) \
- .globl x; x:
-#define LABEL(y) _LABEL(_C_LABEL(y))
-#endif /* defined(__minix) */
-
#define ASMSTR .asciz
#if defined(PIC)
# define RETc(c) __CONCAT(mov,c) pc, lr
#endif
-#ifdef __minix
+#if defined(__minix)
+#define _LABEL(x) \
+ .globl x; x:
+#define LABEL(y) _LABEL(_C_LABEL(y))
+
#define IMPORT(sym) \
.extern _C_LABEL(sym)
-#endif
+#endif /* defined(__minix) */
#endif /* !_ARM_ASM_H_ */
* @(#)ansi.h 8.2 (Berkeley) 1/4/94
*/
-
#ifndef _I386_ANSI_H_
#define _I386_ANSI_H_
#define __KERNEL_RCSID(_n, _s) RCSID(_s)
#endif
-#if defined(__ELF__) || defined(__minix)
+#ifdef __ELF__
#define WEAK_ALIAS(alias,sym) \
.weak alias; \
alias = sym
#define __ALIGNBYTES (sizeof(int) - 1)
-#if defined(__minix)
-#ifndef __ELF__
-#define __LEADING_UNDERSCORE
-#endif
-#endif /* defined(__minix) */
#endif /* !_I386_CDEFS_H_ */