Am Sonntag 24 Juni 2007 23:13 schrieb Denis KENZIOR: > Hendrik, > > > Could be but that really sucks :-( > > You cannot just assign in6addr_loopback, you have to memcpy() it. > > Hmm, why? Isn't struct assignment part of C89? I suppose we can, to keep > ancient compilers happy. Also note that C99 initialization for sockaddr > structures is "wrong". Implementations can add their own structure members > to sockaddr*. Since C99 style initialization doesn't guarantee that these > members will be initialized to 0 for automatic variables, you might get > unexpected behaviour on such platforms.
Then you have to initialize all of them ;) Doesn't really matter. > > Should be already solved by the win32 patchset. From other patch lines, I > > clearly see that you did not use it. > > Ah sorry, for some reason I thought this was already integrated into CVS. It's still in review, see http://dev.zuckschwerdt.org/openobex/ticket/9 I suggest you open a ticket there, too, in addition to posting here. You might find other things that do not work with vc++ or know iprovements to those patches. Please check with me before changing any of them, though. > > For normal cases, uses inttypes.h instead. One of both is present > > everywhere but stdint.h always includes inttypes.h and the latter > > actually defines what we want. > > Doesn't VC++ have inttypes.h? > > VC++ doesn't have inttypes.h or stdint.h. This is a bit different than gcc on win32 (mingw32) then. But it fits the non-availability of C99 (What's the current year, again?) Suggestion: Add a directory with compatibility includes and add it to the include path in your project file. There, you can simply add your inttypes.h and it will be found without any need to change any source code. Best place is probably include/gcc-compat/vc++/inttypes.h, but check with Christian and Marcel for this route. HS ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
