0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd: Move some typedefs to portable; minor reorg.

This commit is contained in:
Jason Volk 2021-04-10 16:34:19 -07:00
parent 5faa82b04d
commit 20f81c55ea
2 changed files with 21 additions and 12 deletions

View file

@ -42,7 +42,7 @@
// 128 bit integer support
//
#if !defined(HAVE_INT128_T) || !defined(HAVE_UINT128_T)
#if defined(__cplusplus) && (!defined(HAVE_INT128_T) || !defined(HAVE_UINT128_T))
namespace ircd
{
#if defined(HAVE___INT128_T) && defined(HAVE__UINT128_T)
@ -57,6 +57,26 @@ namespace ircd
}
#endif
//
// Other convenience typedefs
//
#if defined(__cplusplus)
namespace ircd
{
using longlong = long long;
using ulonglong = unsigned long long;
}
#endif
//
// OpenCL compat
//
#if !defined(uchar)
typedef unsigned char uchar;
#endif
//
// Trouble; FreeBSD unsigned long ctype
//
@ -64,11 +84,3 @@ namespace ircd
#if defined(__FreeBSD__) && !defined(ulong)
typedef u_long ulong;
#endif
//
// Other
//
#if !defined(uchar)
typedef unsigned char uchar;
#endif

View file

@ -175,9 +175,6 @@ namespace std
namespace ircd
{
using longlong = long long;
using ulonglong = unsigned long long;
using std::get;
using std::end;
using std::begin;