wlroots/include/endian.h

9 lines
167 B
C
Raw Normal View History

2017-06-22 20:32:47 +00:00
#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