From: Lvv.me Date: Sun, 21 Nov 2021 13:57:55 +0000 (+0800) Subject: Fix SPM warning: umbrella header for module 'libzstd' does not include header 'xxx.h' X-Git-Tag: v1.5.1~1^2~49^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebf664b7442197cfccbd5a6075c2c80af5946146;p=thirdparty%2Fzstd.git Fix SPM warning: umbrella header for module 'libzstd' does not include header 'xxx.h' --- diff --git a/lib/modulemap/module.modulemap b/lib/modulemap/module.modulemap index 5e09fca9e..2344fd947 100644 --- a/lib/modulemap/module.modulemap +++ b/lib/modulemap/module.modulemap @@ -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 index 000000000..531e71254 --- /dev/null +++ b/lib/modulemap/zstd-umbrella.h @@ -0,0 +1 @@ +#include "../zstd.h" \ No newline at end of file