Patch libogg for generic Unix compilers

This commit is contained in:
Daniel Wolf 2018-09-01 10:07:00 +02:00
parent a446209c31
commit b4a2a295d1
2 changed files with 26 additions and 1 deletions

View File

@ -141,7 +141,13 @@
#else
# include <ogg/config_types.h>
# include <stdint.h>
typedef int16_t ogg_int16_t;
typedef uint16_t ogg_uint16_t;
typedef int32_t ogg_int32_t;
typedef uint32_t ogg_uint32_t;
typedef int64_t ogg_int64_t;
typedef uint64_t ogg_uint64_t;
#endif

19
rhubarb/lib/ogg.patch Normal file
View File

@ -0,0 +1,19 @@
diff --git a/rhubarb/lib/ogg-1.3.3/include/ogg/os_types.h b/rhubarb/lib/ogg-1.3.3/include/ogg/os_types.h
index b8f5630..06257a8 100644
--- a/rhubarb/lib/ogg-1.3.3/include/ogg/os_types.h
+++ b/rhubarb/lib/ogg-1.3.3/include/ogg/os_types.h
@@ -141,7 +141,13 @@
#else
-# include <ogg/config_types.h>
+# include <stdint.h>
+ typedef int16_t ogg_int16_t;
+ typedef uint16_t ogg_uint16_t;
+ typedef int32_t ogg_int32_t;
+ typedef uint32_t ogg_uint32_t;
+ typedef int64_t ogg_int64_t;
+ typedef uint64_t ogg_uint64_t;
#endif