mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-02 17:12:15 +00:00
Fix Android CI Build
by explicitly enabling C language extensions. This will cause the std=gnu90 to be passed via CMAKE_REQUIRED_FLAGS, making clang know about the inline keyword rather than failing when querying for the netinet headers: /usr/local/lib/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64//sysroot/usr/include/linux/swab.h:39:8: error: unknown type name 'inline' static inline __attribute__((__const__)) __u32 __fswahw32(__u32 val) {
This commit is contained in:
parent
ce6e270a41
commit
bf83911631
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ set(CMAKE_C_STANDARD 90)
|
|||
set(CMAKE_CXX_STANDARD 98)
|
||||
|
||||
# whether to use gnu extensions
|
||||
set(CMAKE_C_EXTENSIONS ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
# Compile with position independent code if the user requested a shared lib, i.e. no PIC if static requested.
|
||||
|
|
Loading…
Reference in a new issue