blob: 94651cdd5a49431fe8044534577f0c0062bd624d [file] [log] [blame]
/* Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
* Distributed under the Boost Software License, Version 1.0.
#pragma once
// Portable wrapper around compiler/system specific things.
// The idea is to minimize #ifdef's in the app code.
#include "dsystem.h" // for alloca
#if _MSC_VER
typedef __int64 longlong;
typedef unsigned __int64 ulonglong;
typedef long long longlong;
typedef unsigned long long ulonglong;
typedef unsigned char utf8_t;
struct Port
static int memicmp(const char *s1, const char *s2, size_t n);
static char *strupr(char *s);
static bool isFloat32LiteralOutOfRange(const char *s);
static bool isFloat64LiteralOutOfRange(const char *s);
static void writelongLE(unsigned value, void *buffer);
static unsigned readlongLE(const void *buffer);
static void writelongBE(unsigned value, void *buffer);
static unsigned readlongBE(const void *buffer);
static unsigned readwordLE(const void *buffer);
static unsigned readwordBE(const void *buffer);
static void valcpy(void *dst, uint64_t val, size_t size);