]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix SPM warning: umbrella header for module 'libzstd' does not include header 'xxx.h'
authorLvv.me <cntrump@gmail.com>
Sun, 21 Nov 2021 13:57:55 +0000 (21:57 +0800)
committerLvv.me <cntrump@gmail.com>
Sun, 21 Nov 2021 13:57:55 +0000 (21:57 +0800)
lib/modulemap/module.modulemap
lib/modulemap/zstd-umbrella.h [new file with mode: 0644]

index 5e09fca9eb9ad5309bf9380f6335a20c960a58b4..2344fd947f8fd02012c393ae76d146832112d524 100644 (file)
@@ -1,4 +1,4 @@
-module libzstd {
-    umbrella header "../zstd.h"
+module libzstd [extern_c] {
+    umbrella header "zstd-umbrella.h"
     export *
 }
diff --git a/lib/modulemap/zstd-umbrella.h b/lib/modulemap/zstd-umbrella.h
new file mode 100644 (file)
index 0000000..531e712
--- /dev/null
@@ -0,0 +1 @@
+#include "../zstd.h"
\ No newline at end of file