summaryrefslogtreecommitdiff
path: root/macos
diff options
context:
space:
mode:
authorRalph Giles <giles@xiph.org>2002-07-13 11:37:27 +0000
committerRalph Giles <giles@xiph.org>2002-07-13 11:37:27 +0000
commit80fca2eb9f23565010d0ddb5c041fc7611f26424 (patch)
tree97abe11e1ae2e51b8704c971bbfcc36ae0b6bda5 /macos
parente70090b4d93f82c53829b3c478b893684a58e99d (diff)
downloadogg-git-80fca2eb9f23565010d0ddb5c041fc7611f26424.tar.gz
rename classic mac build dir to macos/
svn path=/trunk/ogg/; revision=3623
Diffstat (limited to 'macos')
-rwxr-xr-xmacos/compat/strdup.c21
-rwxr-xr-xmacos/compat/sys/types.h1
-rwxr-xr-xmacos/libogg.mcpbin0 -> 112574 bytes
-rwxr-xr-xmacos/libogg.mcp.exp64
4 files changed, 86 insertions, 0 deletions
diff --git a/macos/compat/strdup.c b/macos/compat/strdup.c
new file mode 100755
index 0000000..2ef4279
--- /dev/null
+++ b/macos/compat/strdup.c
@@ -0,0 +1,21 @@
+#include <ogg/os_types.h>
+#include <sys/types.h>
+#include <string.h>
+#include <stdlib.h>
+
+char *strdup(const char *inStr)
+{
+ char *outStr = NULL;
+
+ if (inStr == NULL) {
+ return NULL;
+ }
+
+ outStr = _ogg_malloc(strlen(inStr) + 1);
+
+ if (outStr != NULL) {
+ strcpy(outStr, inStr);
+ }
+
+ return outStr;
+}
diff --git a/macos/compat/sys/types.h b/macos/compat/sys/types.h
new file mode 100755
index 0000000..b0d4f92
--- /dev/null
+++ b/macos/compat/sys/types.h
@@ -0,0 +1 @@
+#ifndef __SYS_TYPES_H__ #define __SYS_TYPES_H__ 1 #include <MacTypes.h> #include <alloca.h> #include <string.h> typedef short int16_t; typedef long int32_t; typedef long long int64_t; #define vorbis_size32_t long #if defined(__cplusplus) extern "C" { #endif #pragma options align=power char *strdup(const char *inStr); #pragma options align=reset #if defined(__cplusplus) } #endif #endif /* __SYS_TYPES_H__ */ \ No newline at end of file
diff --git a/macos/libogg.mcp b/macos/libogg.mcp
new file mode 100755
index 0000000..6921abb
--- /dev/null
+++ b/macos/libogg.mcp
Binary files differ
diff --git a/macos/libogg.mcp.exp b/macos/libogg.mcp.exp
new file mode 100755
index 0000000..f71c90e
--- /dev/null
+++ b/macos/libogg.mcp.exp
@@ -0,0 +1,64 @@
+### From <ogg/ogg.h>
+
+# Ogg BITSTREAM PRIMITIVES: bitstream
+
+oggpack_writeinit
+oggpack_writetrunc
+oggpack_writealign
+oggpack_writecopy
+oggpack_reset
+oggpack_writeclear
+oggpack_readinit
+oggpack_write
+oggpack_look
+oggpack_look1
+oggpack_adv
+oggpack_adv1
+oggpack_read
+oggpack_read1
+oggpack_bytes
+oggpack_bits
+oggpack_get_buffer
+
+# Ogg BITSTREAM PRIMITIVES: encoding
+
+ogg_stream_packetin
+ogg_stream_pageout
+ogg_stream_flush
+
+# Ogg BITSTREAM PRIMITIVES: decoding
+
+ogg_sync_init
+ogg_sync_clear
+ogg_sync_reset
+ogg_sync_destroy
+
+ogg_sync_buffer
+ogg_sync_wrote
+ogg_sync_pageseek
+ogg_sync_pageout
+ogg_stream_pagein
+ogg_stream_packetout
+ogg_stream_packetpeek
+
+# Ogg BITSTREAM PRIMITIVES: general
+
+ogg_stream_init
+ogg_stream_clear
+ogg_stream_reset
+ogg_stream_reset_serialno
+ogg_stream_destroy
+ogg_stream_eos
+
+ogg_page_checksum_set
+
+ogg_page_version
+ogg_page_continued
+ogg_page_bos
+ogg_page_eos
+ogg_page_granulepos
+ogg_page_serialno
+ogg_page_pageno
+ogg_page_packets
+
+ogg_packet_clear \ No newline at end of file