Skip to content

Commit

Permalink
Merge pull request #85 from mencian/endian_patch
Browse files Browse the repository at this point in the history
Fix endian.h build error on MacOS
  • Loading branch information
smarco authored Sep 27, 2023
2 parents ea9e397 + 90a9a07 commit 8291560
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wavefront/wavefront_extend_kernels.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
* DESCRIPTION: WFA module for the "extension" of exact matches
*/

#include <endian.h>
#ifdef __APPLE__ || defined(__FreeBSD__)
#include <machine/endian.h> // __BYTE_ORDER
#else
#include <endian.h> // __BYTE_ORDER
#endif

#include "wavefront_extend_kernels.h"
#include "wavefront_termination.h"
Expand Down

0 comments on commit 8291560

Please sign in to comment.