GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_byte_order.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2/*
3 * Copyright (C) 2009-2013 Cyril Hrubis <metan@ucw.cz>
4 */
5
11#ifndef CORE_GP_BYTE_ORDER_H
12#define CORE_GP_BYTE_ORDER_H
13
14/*
15 * To get macros as __BYTE_ORDER __BIG_ENDIAN and __LITTLE_ENDIAN
16 */
17#ifdef __linux__
18# include <endian.h>
19#else /* BSD Family */
20# include <machine/endian.h>
21# define __BYTE_ORDER _BYTE_ORDER
22# define __BIG_ENDIAN _BIG_ENDIAN
23# define __LITTLE_ENDIAN _LITTLE_ENDIAN
24#endif
25
26#endif /* CORE_GP_BYTE_ORDER_H */