Refactored to use individual type headers

This commit is contained in:
Gitea 2020-12-01 17:33:50 -06:00
parent adcc487d81
commit 80f7a6ea93
1 changed files with 14 additions and 69 deletions

View File

@ -12,79 +12,24 @@
#ifndef _SYS_TYPES_H
#define _SYS_TYPES_H
#ifndef _FLC_ALLTYPES
#define _FLC_ALLTYPES
#include <types/size_t.h>
#include <types/ssize_t.h>
#ifdef __need_locale_t
#ifndef __have_locale_t
#define __have_locale_t
typedef struct _locale_t {
} locale_t;
#endif
#endif
#include <types/wchar_t.h>
#ifdef __need_ptrdiff_t
#ifndef __have_ptrdiff_t
#define __have_ptrdiff_t
typedef signed int ptrdiff_t;
#endif
#endif
#include <types/off_t.h>
#include <types/mode_t.h>
#ifdef __need_size_t
#ifndef __have_size_t
#define __have_size_t
typedef unsigned int size_t;
#endif
#endif
#include <types/id_t.h>
#include <types/uid_t.h>
#include <types/gid_t.h>
#include <types/pid_t.h>
#ifdef __need_ssize_t
#ifndef __have_ssize_t
#define __have_ssize_t
typedef unsigned int ssize_t;
#endif
#endif
#include <types/susecond_t.h>
#include <types/time_t.h>
#include <types/clock_t.h>
#ifdef __need_off_t
#ifndef __have_off_t
#define __have_off_t
typedef long long int off_t;
#endif
#endif
#ifdef __need_wchar_t
#ifndef __have_wchar_t
#define __have_wchar_t
typedef int wchar_t;
#endif
#endif
#ifdef __need_id_t
#ifndef __have_id_t
#define __have_id_t
typedef int id_t;
#endif
#endif
#ifdef __need_gid_t
#ifndef __have_gid_t
#define __have_gid_t
typedef unsigned id_t gid_t;
#endif
#endif
#ifdef __need_uid_t
#ifndef __have_uid_t
#define __have_uid_t
typedef unsigned id_t uid_t;
#endif
#endif
#ifdef __need_suseconds_t
#ifndef __have_suseconds_t
#define __have_suseconds_t
typedef long long int suseconds_t;
#endif
#endif
#include <types/clockid_t.h>
#include <types/timer_t.h>
#endif /* not _HEADER */