wlroots-hyprland/include/endian.h
2017-06-23 13:41:07 -04:00

8 lines
167 B
C

#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