diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/libstagefright/ports | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/libstagefright/ports')
9 files changed, 95 insertions, 0 deletions
diff --git a/media/libstagefright/ports/bsd/include/byteswap.h b/media/libstagefright/ports/bsd/include/byteswap.h new file mode 100644 index 000000000..5bd379a8c --- /dev/null +++ b/media/libstagefright/ports/bsd/include/byteswap.h @@ -0,0 +1,15 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +#ifndef BYTESWAP_H_ +#define BYTESWAP_H_ + +#include <sys/endian.h> + +#ifdef __OpenBSD__ +#define bswap_16(x) swap16(x) +#else +#define bswap_16(x) bswap16(x) +#endif + +#endif diff --git a/media/libstagefright/ports/darwin/include/byteswap.h b/media/libstagefright/ports/darwin/include/byteswap.h new file mode 100644 index 000000000..903a9198c --- /dev/null +++ b/media/libstagefright/ports/darwin/include/byteswap.h @@ -0,0 +1,10 @@ +/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+#ifndef BYTESWAP_H_
+#define BYTESWAP_H_
+
+#include <libkern/OSByteOrder.h>
+#define bswap_16 OSSwapInt16
+
+#endif
diff --git a/media/libstagefright/ports/win32/include/arpa/inet.h b/media/libstagefright/ports/win32/include/arpa/inet.h new file mode 100644 index 000000000..e693e856e --- /dev/null +++ b/media/libstagefright/ports/win32/include/arpa/inet.h @@ -0,0 +1,9 @@ +/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+#ifndef INET_H_
+#define INET_H_
+
+#include <netinet/in.h>
+
+#endif
diff --git a/media/libstagefright/ports/win32/include/byteswap.h b/media/libstagefright/ports/win32/include/byteswap.h new file mode 100644 index 000000000..aabc69726 --- /dev/null +++ b/media/libstagefright/ports/win32/include/byteswap.h @@ -0,0 +1,10 @@ +/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+#ifndef BYTESWAP_H_
+#define BYTESWAP_H_
+
+#include <stdlib.h>
+#define bswap_16 _byteswap_ushort
+
+#endif
diff --git a/media/libstagefright/ports/win32/include/netinet/in.h b/media/libstagefright/ports/win32/include/netinet/in.h new file mode 100644 index 000000000..90feff10a --- /dev/null +++ b/media/libstagefright/ports/win32/include/netinet/in.h @@ -0,0 +1,39 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +#ifndef IN_H_ +#define IN_H_ + +#include <stdint.h> + +#if defined(_M_IX86) || defined(_M_AMD64) + +static uint32_t +ntohl(uint32_t x) +{ + return x << 24 | (x << 8 & 0xff0000) | (x >> 8 & 0xff00) | x >> 24; +} + +static uint16_t +ntohs(uint16_t x) +{ + return x << 8 | x >> 8; +} + +static uint32_t +htonl(uint32_t x) +{ + return x << 24 | (x << 8 & 0xff0000) | (x >> 8 & 0xff00) | x >> 24; +} + +static uint16_t +htons(uint16_t x) +{ + return x << 8 | x >> 8; +} + +#else +#error Unsupported architecture +#endif + +#endif diff --git a/media/libstagefright/ports/win32/include/pthread.h b/media/libstagefright/ports/win32/include/pthread.h new file mode 100644 index 000000000..1aa4e7032 --- /dev/null +++ b/media/libstagefright/ports/win32/include/pthread.h @@ -0,0 +1 @@ +// Intentionally left blank diff --git a/media/libstagefright/ports/win32/include/sys/cdefs.h b/media/libstagefright/ports/win32/include/sys/cdefs.h new file mode 100644 index 000000000..1aa4e7032 --- /dev/null +++ b/media/libstagefright/ports/win32/include/sys/cdefs.h @@ -0,0 +1 @@ +// Intentionally left blank diff --git a/media/libstagefright/ports/win32/include/sys/time.h b/media/libstagefright/ports/win32/include/sys/time.h new file mode 100644 index 000000000..b8dd50914 --- /dev/null +++ b/media/libstagefright/ports/win32/include/sys/time.h @@ -0,0 +1,9 @@ +/* Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/publicdomain/zero/1.0/ */
+
+#ifndef TIME_H_
+#define TIME_H_
+
+#include <time.h>
+
+#endif
diff --git a/media/libstagefright/ports/win32/include/unistd.h b/media/libstagefright/ports/win32/include/unistd.h new file mode 100644 index 000000000..1aa4e7032 --- /dev/null +++ b/media/libstagefright/ports/win32/include/unistd.h @@ -0,0 +1 @@ +// Intentionally left blank |