Skip to content

Commit b9c2ab5

Browse files
authored
Merge pull request #527 from mc-requtech/musl-build-fix
gowin: Fix compilation on musl
2 parents 3cf558e + 6dbde4c commit b9c2ab5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gowin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ bool Gowin::send_command(uint8_t cmd)
252252
#define le32toh(x) (x)
253253
#endif
254254
#endif
255+
#else
256+
#include <endian.h>
255257
#endif
256258

257259
uint32_t Gowin::readReg32(uint8_t cmd)

0 commit comments

Comments
 (0)