Use <sys/types.h> not <inttypes.h> when building for Apple platforms,
as it works with modular dynamic-framework builds.
Signed-off-by: Ralph Giles <giles@thaumas.net>
Subversion, like cvs, had a mechanism for replacing inline template
text on checkout for representing things like 'last modified date'.
Git does not support this, so remove the template strings from
file header comments.
Also less aggressive language is os_types.h.
int types might come from one of three different includes on a modern
system. Try, if possible, to use types that don't rely on any of the
includes such that the oldest systems have more of a fighting chance.
Addresses Trac #849
svn path=/trunk/ogg/; revision=17566
extension, which is not supported by MSVC.
We don't actually need that generality, though, so revert to simply using
LONG_MAX instead.
svn path=/trunk/ogg/; revision=17287
GCC optimizes out the overflow check due to the overflow check reyling on overflow;
reimplement using type-based TYPE_MAX macro
Correct an accidental assignment-during-check that wasn't a bug, but was
semantically incorrect and rightly triggered a compilation warning.
svn path=/trunk/ogg/; revision=17270
Update ogg to check the return of all allocs for those on embedded
platforms with guarantees non-ovecommit. Be aware that these checks
are useless on any modern desktop OS, but that embedded folks with no
MMU and a hard heap boundary will benefit.
Add one new call to bitpacker that will query a write-mode
oggpack_buffer to see if it ran out of memory at some point; there was
no other way to add the error reporting in an ABI-compatible manner
(and it also allows the writepacker to avoid extra checks; it will
just keep going after running out of memory without faulting and state
can be queried later).
svn path=/trunk/ogg/; revision=16016