Skip to content

Commit

Permalink
mi.h: Use ccan/endian/endian.h instead of endian.h
Browse files Browse the repository at this point in the history
When both endian.h and ccan/endian/endian.h are included, we can have
__{BIG,LITTLE}_ENDIAN redefined when compiling with clang. Consistenly
use ccan/endian/endian.h to eliminate that problem.

Signed-off-by: Warner Losh <[email protected]>
  • Loading branch information
bsdimp committed May 4, 2024
1 parent 80c5cf2 commit 7a714c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvme/mi.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
#ifndef _LIBNVME_MI_MI_H
#define _LIBNVME_MI_MI_H

#include <endian.h>
#include <ccan/endian/endian.h>
#include <stdint.h>

#include "types.h"
Expand Down

0 comments on commit 7a714c2

Please sign in to comment.