moved IsBigEndian into it's own file

This commit is contained in:
fourtf
2018-06-27 13:03:38 +02:00
parent c22052afdd
commit 6a93aa412e
3 changed files with 16 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
#pragma once
namespace chatterino {
bool isBigEndian()
{
int test = 1;
char *p = reinterpret_cast<char *>(&test);
return p[0] == 0;
}
} // namespace chatterino