diff options
author | Richard Braun <rbraun@sceen.net> | 2017-02-04 17:45:17 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-02-04 17:45:17 +0100 |
commit | fd035c0a3d361e513fe7916b67e14ff702983153 (patch) | |
tree | 81d24cf88a68144bfd6113a8e148a0dd9528affe /kern/types.h | |
parent | d479903845975a480be4201aa892e4434c4f6c54 (diff) |
Clean up compilation
Instead of mixing standard headers and internal redefinitions of standard
types, completely rely on the compiler for what is guaranteed for a free
standing environment. This results in the removal of kern/stddef.h and
kern/stdint.h. The kern/types.h header is reintroduced for the different
(and saner) purpose of defining types not specified in standard C,
namely ssize_t for now.
Diffstat (limited to 'kern/types.h')
-rw-r--r-- | kern/types.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/kern/types.h b/kern/types.h new file mode 100644 index 00000000..2eb1064d --- /dev/null +++ b/kern/types.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017 Richard Braun. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * + * Machine-independent definitions for non-standard C types. + */ + +#ifndef _KERN_TYPES_H +#define _KERN_TYPES_H + +typedef long ssize_t; + +#endif /* _KERN_TYPES_H */ |