[xiph-commits] r15204 - trunk/oggdsf/src/lib/core/ogg/libogg/include/ogg

cristianadam at svn.xiph.org cristianadam at svn.xiph.org
Tue Aug 26 10:48:50 PDT 2008


Author: cristianadam
Date: 2008-08-26 10:48:38 -0700 (Tue, 26 Aug 2008)
New Revision: 15204

Modified:
   trunk/oggdsf/src/lib/core/ogg/libogg/include/ogg/os_types.h
Log:
Visual Studio Express 9.0 SP1 doesn't have size_t defined. There were source files where #include <ogg/ogg.h> was the first include. os_types.h seamed the perfect place put the necessary #include statement.

Modified: trunk/oggdsf/src/lib/core/ogg/libogg/include/ogg/os_types.h
===================================================================
--- trunk/oggdsf/src/lib/core/ogg/libogg/include/ogg/os_types.h	2008-08-26 09:57:31 UTC (rev 15203)
+++ trunk/oggdsf/src/lib/core/ogg/libogg/include/ogg/os_types.h	2008-08-26 17:48:38 UTC (rev 15204)
@@ -50,6 +50,10 @@
      typedef unsigned short ogg_uint16_t;
 #  else
      /* MSVC/Borland */
+#ifndef size_t
+	// Visual Studio Express 9.0 SP1 doesn't have size_t defined
+	#include <stddef.h>
+#endif     
      typedef __int64 ogg_int64_t;
      typedef __int32 ogg_int32_t;
      typedef unsigned __int32 ogg_uint32_t;



More information about the commits mailing list