https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cab3e62f0ee6746b067fb…
commit cab3e62f0ee6746b067fbdf8ec174b308e714dcd
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Mon Nov 9 13:28:08 2020 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Mon Nov 16 16:58:10 2020 +0100
[CDFS] Use GNU89 standard when using CLang
---
drivers/filesystems/cdfs/CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/filesystems/cdfs/CMakeLists.txt
b/drivers/filesystems/cdfs/CMakeLists.txt
index 2f1d4526c3e..3e35991bfa0 100644
--- a/drivers/filesystems/cdfs/CMakeLists.txt
+++ b/drivers/filesystems/cdfs/CMakeLists.txt
@@ -38,3 +38,9 @@ target_link_libraries(cdfs ${PSEH_LIB} memcmp)
add_importlibs(cdfs ntoskrnl hal)
add_cd_file(TARGET cdfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(cdfs_reg.inf)
+
+if (CLANG AND GCC)
+ # Make __inline work as expected
+ target_compile_options(cdfs PRIVATE -std=gnu89)
+endif()
+