VOGONS

Common searches


Search results

Display options

Re: Null pointer dereferences

It looks like old code written to be portable before "offsetof" was widely available. It's not dereferencing a NULL pointer, it's getting the address of a member variable when the "this" pointer is NULL which is equivalent to finding the offset of that member (in bytes) from "this".

Re: OS X Core Audio Compile Problem

I'm not sure, however Apple's modified gcc needs to support the Blocks extension otherwise #include'ing Apple's coreMIDI header would similarly choke on the broken prototype syntax. The versions of xcode that bundle gcc don't bundle system headers that use blocks, obviously. The preprocessor code …

Re: OS X Core Audio Compile Problem

This is a bog-standard gcc... and it builds DOSBox just fine when I use Apple's own published method for dectecting their AppleBlocks extension. It's not fine though, it's crippled - missing a standard feature that a macOS build is expected to have. Have you checked if Apple's gcc ( not clang ) …

Re: OS X Core Audio Compile Problem

I wasn't aware DOSBox's core developers exclusively support Clang-based builds on OS X (happy if you can point me to that). Similarly, I wasn't aware the core developers have declared gcc as /not supported/ on OS X. Clang is not the only compiler that Apple has ever shipped. They used gcc long …

Re: OS X Core Audio Compile Problem

Oh.. interesting. They might have mangled it with their non-standard language extensions prior to getting clang underway. As I mentioned earlier that's exactly what happened. Their headers have always been designed to only work with their compiler, not sure why you're going to the effort of setting …

Page 53 of 68