[vorbis-dev] Patch for MinGW of libogg

Leigh Smith leigh at leighsmith.com
Sun Oct 19 17:58:49 PDT 2003



Hi all,

Just a short patch to os_types.h in libogg to allow compilation with 
MinGW.

Index: os_types.h
===================================================================
RCS file: /usr/local/cvsroot/ogg/include/ogg/os_types.h,v
retrieving revision 1.14
diff -u -d -b -w -r1.14 os_types.h
--- os_types.h  2 Sep 2003 05:09:14 -0000       1.14
+++ os_types.h  19 Oct 2003 23:23:49 -0000
@@ -33,7 +33,7 @@
     typedef unsigned __int32 ogg_uint32_t;
     typedef __int16 ogg_int16_t;
     typedef unsigned __int16 ogg_uint16_t;
-#  else
+#  elif defined(__CYGWIN__)
     /* Cygwin */
     #include <_G_config.h>
     typedef _G_int64_t ogg_int64_t;
@@ -41,6 +41,10 @@
     typedef _G_uint32_t ogg_uint32_t;
     typedef _G_int16_t ogg_int16_t;
     typedef _G_uint16_t ogg_uint16_t;
+#  else
+   /* MinGW */
+   #include <sys/types.h>
+   #include <ogg/config_types.h>
  #  endif

  #elif defined(__MACOS__)


--
Leigh Smith
mailto:leigh at leighsmith.com
http://www.leighsmith.com

--- >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