Skip to content

Commit

Permalink
crc32c: Update endian logic from upstream.
Browse files Browse the repository at this point in the history
Fixes Mac OS X build.
  • Loading branch information
jrfonseca committed May 6, 2016
1 parent eccf423 commit 0ae45f5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions thirdparty/crc32c/crc32c.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@
#include <stdlib.h>
#include <stdint.h>

#ifndef _WIN32
#include <endian.h>
// define endianess and some integer data types
#if defined(_WIN32)
#define __LITTLE_ENDIAN 1234
#define __BIG_ENDIAN 4321
#define __BYTE_ORDER __LITTLE_ENDIAN
#else
// defines __BYTE_ORDER as __LITTLE_ENDIAN or __BIG_ENDIAN
#include <sys/param.h>
#endif


Expand Down

0 comments on commit 0ae45f5

Please sign in to comment.