mirror of
https://github.com/deadw00d/AROS.git
synced 2025-12-06 21:40:57 +00:00
fix behaviour to define the types if they are not provided.
This commit is contained in:
@ -2,12 +2,16 @@
|
||||
#define _AROS_TYPES_PTRDIFF_T_H
|
||||
|
||||
/*
|
||||
Copyright <20> 2010-2011, The AROS Development Team. All rights reserved.
|
||||
Copyright <20> 2010-2025, The AROS Development Team. All rights reserved.
|
||||
$Id$
|
||||
|
||||
ptrdiff_t
|
||||
*/
|
||||
|
||||
typedef long int ptrdiff_t;
|
||||
#ifndef __PTRDIFF_TYPE__
|
||||
#define __PTRDIFF_TYPE__ long int
|
||||
#endif
|
||||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||
|
||||
|
||||
#endif /* _AROS_TYPES_PTRDIFF_T_H */
|
||||
|
||||
@ -26,17 +26,16 @@
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
||||
#include <aros/types/int_t.h>
|
||||
|
||||
#ifdef __WCHAR_TYPE__
|
||||
#ifndef __WCHAR_TYPE__
|
||||
# include <aros/types/int_t.h>
|
||||
# if defined(__WCHAR_MAX__) && __WCHAR_MAX__ > 255
|
||||
/* AROS policy: UCS-4 capable */
|
||||
# define __WCHAR_TYPE__ uint32_t
|
||||
# else
|
||||
# define __WCHAR_TYPE__ char
|
||||
# endif
|
||||
#endif
|
||||
typedef __WCHAR_TYPE__ wchar_t;
|
||||
#else
|
||||
#if defined(__WCHAR_MAX__) && __WCHAR_MAX__ > 255
|
||||
typedef uint32_t wchar_t; /* UTF-8 capable wide char */
|
||||
#else
|
||||
typedef char wchar_t; /* single-byte wide char */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__WCHAR_MAX__)
|
||||
#if __WCHAR_MAX__ >= 0x10FFFF
|
||||
|
||||
@ -4,6 +4,8 @@
|
||||
/*
|
||||
Copyright <20> 2020-2025, The AROS Development Team. All rights reserved.
|
||||
$Id$
|
||||
|
||||
wctype_t definition for AROS
|
||||
*/
|
||||
|
||||
#ifndef __cplusplus
|
||||
@ -14,17 +16,16 @@
|
||||
|
||||
#if 0
|
||||
|
||||
#include <aros/types/int_t.h>
|
||||
|
||||
#ifdef __WCTYPE_TYPE__
|
||||
#ifndef __WCTYPE_TYPE__
|
||||
# include <aros/types/int_t.h>
|
||||
# if defined(__WCHAR_MAX__) && __WCHAR_MAX__ > 256
|
||||
/* AROS policy: UCS-4 capable */
|
||||
# define __WCTYPE_TYPE__ uint32_t
|
||||
# else
|
||||
# define __WCTYPE_TYPE__ char
|
||||
# endif
|
||||
#endif
|
||||
typedef __WCTYPE_TYPE__ wctype_t;
|
||||
#else
|
||||
#if defined(__WCHAR_MAX__) && __WCHAR_MAX__ > 256
|
||||
typedef uint32_t wctype_t;
|
||||
#else
|
||||
typedef char wctype_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@ -4,23 +4,23 @@
|
||||
/*
|
||||
Copyright <20> 2010-2025, The AROS Development Team. All rights reserved.
|
||||
$Id$
|
||||
|
||||
wint_t definition for AROS
|
||||
*/
|
||||
|
||||
typedef int wint_t;
|
||||
|
||||
#if 0
|
||||
|
||||
#ifndef __WINT_TYPE__
|
||||
#include <aros/types/int_t.h>
|
||||
|
||||
#ifdef __WINT_TYPE__
|
||||
# if defined(__WCHAR_MAX__) && __WCHAR_MAX__ > 256
|
||||
# define __WINT_TYPE__ uint32_t
|
||||
# else
|
||||
# define __WINT_TYPE__ char
|
||||
# endif
|
||||
#endif
|
||||
typedef __WINT_TYPE__ wint_t;
|
||||
#else
|
||||
#if defined(__WCHAR_MAX__) && __WCHAR_MAX__ > 256
|
||||
typedef uint32_t wint_t;
|
||||
#else
|
||||
typedef char wint_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user