From f1bc79ce30f74e8d05745ba514f59213008f669c Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 12 Mar 2020 17:00:24 +0100 Subject: [PATCH] Add module map to use mp4v2 in Swift. --- mp42v2/module.modulemap | 4 ++++ mp42v2/mp4v2/platform.h | 1 + 2 files changed, 5 insertions(+) create mode 100644 mp42v2/module.modulemap diff --git a/mp42v2/module.modulemap b/mp42v2/module.modulemap new file mode 100644 index 0000000..a6daa19 --- /dev/null +++ b/mp42v2/module.modulemap @@ -0,0 +1,4 @@ +// mp42v2/module.modulemap +module mp4v2 { + header "mp4v2.h" +} \ No newline at end of file diff --git a/mp42v2/mp4v2/platform.h b/mp42v2/mp4v2/platform.h index aea948a..5ba6d58 100644 --- a/mp42v2/mp4v2/platform.h +++ b/mp42v2/mp4v2/platform.h @@ -6,6 +6,7 @@ #include #include #include +#include // Thanks, MSFT, for making C99 a total PITA. Declare this not to define any stdint stuff; this is useful // if you're going to be using mp4v2 on windows with some other library that defines its own stdint.