Merge pull request #527 from mc-requtech/musl-build-fix

gowin: Fix compilation on musl
This commit is contained in:
Gwenhael Goavec-Merou 2025-03-08 06:12:53 +01:00 committed by GitHub
commit b9c2ab5cdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -252,6 +252,8 @@ bool Gowin::send_command(uint8_t cmd)
#define le32toh(x) (x)
#endif
#endif
#else
#include <endian.h>
#endif
uint32_t Gowin::readReg32(uint8_t cmd)