"Erik Huelsmann" <ehuels@gmail.com> writes:
> I'll need to look at how we solved this in svn_ctypes.h, but as far as
> I recall there were problems with exporting variables from DLLs on
> Windows, because supposedly MSVC needs to reference a pointer to the
> variable whereas other compilers support manipulating the variable
> directly, see http://svn.haxx.se/dev/archive-2005-12/0364.shtml
Hmm. I didn't quite understand that, and unfortunately svn.haxx.se is
unreachable from my home network right now. We can't just define the
object once in svn_iter.c, and then declare it "extern" in svn_iter.h?
Does MSVC have a problem with that? (I thought it was standard C89.)
> I guess returning "(svn_error_t *)1" is the most portable solution to
> returning a constant-and-known-pointer value to check against...
>
> Comments?
Either one is fine, but having it be a real error object would be
better, of course.
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 12 10:33:16 2007