Interesting. So they are identically defined? (I couldn't get VS to show me the struct since it couldn't figure out that I wanted the struct not the function, arg!) For POD that should work without a problem and a cast would be fine as long as the structures do not ever diverge.
The pendant in me says make a Blender stat struct and not rely on the OS version. But, for the love of all that is cute and fluffy, don't name the struct BLI_stat. I bet you are starting to think of me as that annoying mosquito that buzzes in your ear while you are trying to sleep :-) On Wed, May 2, 2012 at 10:36 PM, Alexandr Kuznetsov <[email protected]> wrote: > Hi Jason > > Well, stat and _wstat structures are physically different, but they are > basically the same inside from what I can tell. I don't know if it would be > better to create _wstat buf2 and manually copy each entry after the call. > C FTW! > > Alex > > On Wed, May 2, 2012 at 11:22 PM, Jason Wilkins > <[email protected]>wrote: > >> In storage.c, around line 500, _wstat takes a _wstat*, not a stat* >> >> Compiler spits out an incompatible pointer warning. This would be an >> error in C++ >> >> Not sure how to quickly fix it. >> _______________________________________________ >> Bf-committers mailing list >> [email protected] >> http://lists.blender.org/mailman/listinfo/bf-committers >> > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
