Ultralight
Ultralight copied to clipboard
GCC 10 compilation fails
Ubuntu 20.04, GCC 10.3.0. Ultralight version 1.3.0 (3e70dc7)
When linking Ultralight the following error appears:
.../include/Ultralight/Matrix.h:41:18: error: expected identifier before ‘alignas’
41 | struct UExport alignas(16) Matrix
| ^~~~~~~
Using __attribute__((aligned(16))) instead of alignas(16) fixes the error:
struct UExport __attribute__((aligned(16))) Matrix
Same issue here. Your fix worked for me, thank you for sharing!