libostd/octa/types.h

41 lines
830 B
C
Raw Normal View History

2015-04-13 23:25:31 +02:00
/* Core typedefs for OctaSTD.
*
* This file is part of OctaSTD. See COPYING.md for futher information.
*/
#ifndef OCTA_TYPES_H
#define OCTA_TYPES_H
#include <stdint.h>
#include <stddef.h>
2015-04-13 23:25:31 +02:00
namespace octa {
typedef signed char schar;
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned long long ullong;
typedef long long llong;
typedef long double ldouble;
2015-04-14 02:12:00 +02:00
typedef decltype(nullptr) nullptr_t;
#if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T)
using ::max_align_t;
#else
typedef long double max_align_t;
#endif
2015-04-13 23:25:31 +02:00
}
2015-04-24 19:51:35 +02:00
using octa::schar;
using octa::uchar;
using octa::ushort;
using octa::uint;
using octa::ulong;
using octa::ullong;
using octa::llong;
using octa::ldouble;
2015-04-13 23:25:31 +02:00
#endif