mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Remove libmaxsi stddef.h and stdarg.h.
These are provided by the cross compiler.
This commit is contained in:
parent
8b7eef9fe4
commit
0437d75147
8 changed files with 10 additions and 112 deletions
|
@ -1,3 +1,4 @@
|
|||
#ifndef NULL
|
||||
#define NULL __NULL
|
||||
#define __need_NULL
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,2 @@
|
|||
#ifndef _PTRDIFF_T_DECL
|
||||
#define _PTRDIFF_T_DECL
|
||||
#if !defined(_GCC_PTRDIFF_T)
|
||||
#define _GCC_PTRDIFF_T
|
||||
typedef __ptrdiff_t ptrdiff_t;
|
||||
#endif
|
||||
#endif
|
||||
#define __need_ptrdiff_t
|
||||
#include <stddef.h>
|
||||
|
|
|
@ -1,10 +1,2 @@
|
|||
#ifndef _SIZE_T_DECL
|
||||
#ifndef _SIZE_T_DECLARED /* Compabillity with gcc */
|
||||
#define _SIZE_T_DECL
|
||||
#define _SIZE_T_DECLARED
|
||||
#if !defined(_GCC_SIZE_T)
|
||||
#define _GCC_SIZE_T
|
||||
typedef __size_t size_t;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#define __need_size_t
|
||||
#include <stddef.h>
|
||||
|
|
|
@ -1,9 +1,2 @@
|
|||
#ifndef _WCHAR_T_DECL
|
||||
#define _WCHAR_T_DECL
|
||||
#if !defined(__cplusplus)
|
||||
#if !defined(_GCC_WCHAR_T)
|
||||
#define _GCC_WCHAR_T
|
||||
typedef __wchar_t wchar_t;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#define __need_wchar_t
|
||||
#include <stddef.h>
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/******************************************************************************
|
||||
|
||||
COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2011.
|
||||
|
||||
This file is part of LibMaxsi.
|
||||
|
||||
LibMaxsi is free software: you can redistribute it and/or modify it under
|
||||
the terms of the GNU Lesser General Public License as published by the Free
|
||||
Software Foundation, either version 3 of the License, or (at your option)
|
||||
any later version.
|
||||
|
||||
LibMaxsi is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
|
||||
more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with LibMaxsi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
stdarg.h
|
||||
Handle variable argument list
|
||||
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef _STDARG_H
|
||||
#define _STDARG_H 1
|
||||
|
||||
#include <features.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@include(va_list.h)
|
||||
|
||||
#undef __need___va_list
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
/******************************************************************************
|
||||
|
||||
COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2011.
|
||||
|
||||
This file is part of LibMaxsi.
|
||||
|
||||
LibMaxsi is free software: you can redistribute it and/or modify it under
|
||||
the terms of the GNU Lesser General Public License as published by the Free
|
||||
Software Foundation, either version 3 of the License, or (at your option)
|
||||
any later version.
|
||||
|
||||
LibMaxsi is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
|
||||
more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public License
|
||||
along with LibMaxsi. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
stddef.h
|
||||
Standard type definitions.
|
||||
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef _STDDEF_H
|
||||
#define _STDDEF_H 1
|
||||
|
||||
#include <features.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@include(NULL.h)
|
||||
|
||||
#define offsetof(type, member) __builtin_offsetof(type, member)
|
||||
|
||||
@include(ptrdiff_t.h)
|
||||
|
||||
@include(wchar_t.h)
|
||||
|
||||
@include(size_t.h)
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
|
@ -55,7 +55,7 @@ typedef __uint64_t __uintmax_t;
|
|||
|
||||
/* Define an integer able to hold the size of the largest continuous memory */
|
||||
/* region and define pointer safe integer types. */
|
||||
typedef __SIZE_TYPE__ __size_t;
|
||||
//typedef __SIZE_TYPE__ __size_t;
|
||||
typedef signed long int __ssize_t;
|
||||
typedef signed long __intptr_t;
|
||||
typedef unsigned long __uintptr_t;
|
||||
|
|
|
@ -55,7 +55,7 @@ typedef __uint64_t __uintmax_t;
|
|||
|
||||
/* Define an integer able to hold the size of the largest continuous memory */
|
||||
/* region and define pointer safe integer types. */
|
||||
typedef __SIZE_TYPE__ __size_t;
|
||||
//typedef __SIZE_TYPE__ __size_t;
|
||||
typedef signed int __ssize_t;
|
||||
typedef signed long __intptr_t;
|
||||
typedef unsigned long __uintptr_t;
|
||||
|
|
Loading…
Add table
Reference in a new issue