stdint: use correct typedefs

This commit is contained in:
anna 2021-08-01 17:05:37 +02:00
parent caefad25a8
commit 3aa2c53893
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -18,19 +18,22 @@ typedef __UINT32_TYPE__ uint32_t;
typedef __UINT64_TYPE__ uint64_t;
#endif
#ifndef __SIZE_TYPE__
#define __SIZE_TYPE__ unsigned long int
#endif /* __SIZE_TYPE__ */
/** Unsigned size specifier. */
typedef __SIZE_TYPE__ size_t;
typedef __SIZE_TYPE__ uintptr_t;
#define unsigned signed /* m4d h4xx0r sk1llz!!1! */
/** Signed size specifier (negative sizes mean error codes). */
typedef __PTRDIFF_TYPE__ ssize_t;
typedef __SIZE_TYPE__ ssize_t;
#undef unsigned
typedef __INTPTR_TYPE__ intptr_t;
typedef __UINTPTR_TYPE__ uintptr_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef __PTRDIFF_TYPE__ off_t;
typedef long __PTRDIFF_TYPE__ loff_t;
typedef __WCHAR_TYPE__ wchar_t;
/*
* This file is part of Ardix.
* Copyright (c) 2020, 2021 Felix Kopp <owo@fef.moe>.