mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:59:02 +08:00
12 lines
200 B
C
12 lines
200 B
C
#include "decomp.h"
|
|
#include <stdint.h>
|
|
|
|
int set_endian()
|
|
{
|
|
uint32_t integer = 0x000000aa;
|
|
unsigned char *p = (unsigned char*)&integer;
|
|
|
|
if (p[0] == 0xaa) return 0;
|
|
else return 1;
|
|
}
|