From d5241349cc1b1e74496077ec939556c9c5eae355 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 29 Dec 2013 23:12:32 +0100 Subject: [PATCH] Move OFF_MIN and OFF_MAX to . --- kernel/dispmsg.cpp | 2 ++ kernel/include/sortix/__/types.h | 7 ------- libc/include/sys/types.h | 4 ++++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/kernel/dispmsg.cpp b/kernel/dispmsg.cpp index 647b93fb..dc54eada 100644 --- a/kernel/dispmsg.cpp +++ b/kernel/dispmsg.cpp @@ -22,6 +22,8 @@ *******************************************************************************/ +#include + #include #include #include diff --git a/kernel/include/sortix/__/types.h b/kernel/include/sortix/__/types.h index dd2cb26a..c1c26770 100644 --- a/kernel/include/sortix/__/types.h +++ b/kernel/include/sortix/__/types.h @@ -82,13 +82,6 @@ typedef __uint64_t __uid_t; typedef unsigned int __useconds_t; -#if defined(__is_sortix_kernel) || defined(__is_sortix_libc) -#define OFF_MIN __OFF_MIN -#endif -#if defined(__is_sortix_kernel) || defined(__is_sortix_libc) -#define OFF_MAX __OFF_MAX -#endif - __END_DECLS #endif diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index e9db425b..d03b4858 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -99,6 +99,10 @@ typedef __nlink_t nlink_t; #define __off_t_defined typedef __off_t off_t; #endif +#if defined(__is_sortix_kernel) || defined(__is_sortix_libc) +#define OFF_MIN __OFF_MIN +#define OFF_MAX __OFF_MAX +#endif #ifndef __pid_t_defined #define __pid_t_defined