Skip to content

Commit

Permalink
core: replaced buggy cpu byte order detection with a reliable mechanism
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Aug 21, 2024
1 parent 76941a3 commit e5eccbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/fluent-bit/flb_endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@
#define FLB_BIG_ENDIAN 1

#ifndef FLB_BYTE_ORDER
#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define FLB_BYTE_ORDER FLB_BIG_ENDIAN
#elif defined(__BIG_ENDIAN__) || defined(__BIG_ENDIAN) || defined(_BIG_ENDIAN)
#ifdef FLB_HAVE_BIG_ENDIAN_SYSTEM
#define FLB_BYTE_ORDER FLB_BIG_ENDIAN
#else
#define FLB_BYTE_ORDER FLB_LITTLE_ENDIAN
Expand Down

0 comments on commit e5eccbd

Please sign in to comment.