mirror of https://github.com/libAthena/athena.git
Remove cyclic include
This commit is contained in:
parent
d2dbd99ad6
commit
075747c418
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include "athena/FileInfo.hpp"
|
#include "athena/FileInfo.hpp"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#if _WIN32
|
#if _WIN32
|
||||||
typedef int mode_t;
|
typedef int mode_t;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "athena/Types.hpp"
|
#include "athena/Types.hpp"
|
||||||
#include "athena/Utility.hpp"
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable : 4996)
|
#pragma warning(disable : 4996)
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "utf8proc.h"
|
#include "utf8proc.h"
|
||||||
|
#include "Utility.hpp"
|
||||||
#include "IStream.hpp"
|
#include "IStream.hpp"
|
||||||
|
|
||||||
namespace athena::io
|
namespace athena::io
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
|
|
||||||
#include "utf8proc.h"
|
#include "utf8proc.h"
|
||||||
#include "IStream.hpp"
|
#include "IStream.hpp"
|
||||||
|
#include "Utility.hpp"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace athena::io
|
namespace athena::io
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,6 +13,8 @@ namespace athena::utility
|
||||||
{
|
{
|
||||||
inline bool isEmpty(atInt8* buf, atUint32 size) {return !memcmp(buf, buf + 1, size - 1);}
|
inline bool isEmpty(atInt8* buf, atUint32 size) {return !memcmp(buf, buf + 1, size - 1);}
|
||||||
constexpr bool isSystemBigEndian() {return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;}
|
constexpr bool isSystemBigEndian() {return __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__;}
|
||||||
|
inline constexpr ::athena::Endian SystemEndian = isSystemBigEndian() ? Big : Little;
|
||||||
|
inline constexpr ::athena::Endian NotSystemEndian = isSystemBigEndian() ? Little : Big;
|
||||||
|
|
||||||
inline atInt16 swap16(atInt16 val)
|
inline atInt16 swap16(atInt16 val)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
#include "athena/Utility.hpp"
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "athena/Global.hpp"
|
#include "athena/Global.hpp"
|
||||||
|
#include "athena/Utility.hpp"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
Loading…
Reference in New Issue