mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
14 lines
177 B
C++
14 lines
177 B
C++
#pragma once
|
|
|
|
namespace chatterino {
|
|
|
|
bool isBigEndian()
|
|
{
|
|
int test = 1;
|
|
char *p = reinterpret_cast<char *>(&test);
|
|
|
|
return p[0] == 0;
|
|
}
|
|
|
|
} // namespace chatterino
|