[vorbis-dev] os_types.h

Chris Hanson cmh at bDistributed.com
Sat Sep 9 09:44:22 PDT 2000



At 2:18 AM +1000 9/10/00, Michael Smith wrote:
>This is related to some recent build changes. Running configure will create
>os_types.h with the appropriate things in it, based on this file.
>
>If you're running something which doesn't have autoconf (win32, and I
>assume macos), you should just rename the file to os_types.h, and it should
>work (it does on win32, I haven't heard anything either way from any macos
>types, but I suspect a couple of minor changes will be needed)

I really don't like having this extra step in there, but I guess it's 
unavoidable.

Well, okay, it isn't unavoidable.  There could be a unix_types.h.in 
file that contains the munged-by-configure part that's currently in 
os_types.h.in.  os_types.h.in would become os_types.h again, and the 
munged-by-configure part would be replaced by a simple #include 
"unix_types.h".  This way Unix developers can build the whole package 
in their usually way (with configure and make), and Windows and 
Macintosh developers can build the whole package in *their* usual way 
(by opening a top-level project file and telling their development 
environment to build).  Anyway, I think I've raved enough about this.

In any case, below is a simple diff -u against os_types.h.in 1.3 
which adds the appropriate types for Macintosh.  The <sys/types.h> 
included is the one I created and put in the mac folder; it includes 
the standard Apple header <MacTypes.h>, which is what defines types 
like SInt16 and so on.

   -- Chris

--- vorbis/include/vorbis/os_types.h.in	2000/08/30 07:09:46	1.3
+++ vorbis/include/vorbis/os_types.h.in	2000/09/09 16:39:41
@@ -36,6 +36,16 @@
  typedef unsigned _G_int32_t ogg_uint32_t;
  typedef _G_int16_t ogg_int16_t;
  #endif
+
+#elif defined(macintosh)
+
+#include <sys/types.h>
+
+typedef SInt16 ogg_int16_t;
+typedef SInt32 ogg_int32_t;
+typedef UInt32 ogg_uint32_t;
+typedef SInt64 ogg_int64_t;
+
  #else

  #ifdef __BEOS__

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list