aboutsummaryrefslogtreecommitdiff
path: root/include/endian.h
blob: 0e9b61014fe7f0071d9df0fb353bf39ece9045ca (plain)
1
2
3
4
5
6
7
8
#ifndef _WLR_ENDIAN_H
#define _WLR_ENDIAN_H

// https://stackoverflow.com/a/4240257

#define little_endian() (((union { unsigned x; unsigned char c; }){1}).c)

#endif