AuroraRuntime/Source/RuntimeInternal.hpp

71 lines
1.4 KiB
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: RuntimeInternal.hpp
Date: 2021-6-12
Author: Reece
***/
#pragma once
#include <AuroraCommon.hpp>
#if defined(AURORA_PLATFORM_WIN32)
#if !defined(NOMINMAX)
#define NOMINMAX
#endif
#if !defined(WIN32_LEAN_AND_MEAN)
#define WIN32_LEAN_AND_MEAN
#endif
//_WIN32_WINNT=0x0601
#include <SDKDDKVer.h>
#if defined(_AUHAS_ASIO)
#include <asio.hpp>
#endif
#include <windows.h>
#else
#if defined(_AUHAS_ASIO)
#include <asio.hpp>
#endif
#endif
2021-09-06 10:58:08 +00:00
#if defined(AURORA_IS_POSIX_DERIVED)
2021-06-27 21:25:29 +00:00
#define AURORA_HAS_PTHREADS
2021-09-06 10:58:08 +00:00
#define _FILE_OFFSET_BITS 64
#if !defined(_LARGEFILE64_SOURCE)
#define _LARGEFILE64_SOURCE
#endif
2021-09-06 10:58:08 +00:00
2021-06-27 21:25:29 +00:00
#include <pthread.h>
#include <signal.h>
2021-09-06 10:58:08 +00:00
#include <stdlib.h>
#include <unistd.h>
#define stricmp strcasecmp
2021-06-27 21:25:29 +00:00
#endif
#include <AuroraRuntime.hpp>
#if defined(__has_include)
#if __has_include(<intrin.h>)
#include <intrin.h>
#endif
#if __has_include(<emmintrin.h>)
#include <emmintrin.h>
#endif
#if __has_include(<xmmintrin.h>)
#include <xmmintrin.h>
#endif
#if __has_include(<immintrin.h>)
#include <immintrin.h>
#endif
#endif
2021-06-27 21:25:29 +00:00
inline Aurora::RuntimeStartInfo gRuntimeConfig;
using namespace Aurora::Console::Logging;