[Xitami-Dev] C++/C linkage

Angus Lord xitami-dev@lists.xitami.org
Tue, 8 Jan 2002 10:55:52 +0100


Hi,

I encountered a couple of problems when writing my own windows front end to
Xitami. I was using ATL - therefore C++ - for the object and when linking in
the sfl and smt libraries I had to change the header files sfl.h smtlib.h
and smthhtp.h to add the extern "C" to the declaration of the global
variables.

I also got a warning when compiling about a redefinition of FD_SETSIZE in
sfl.h (also declared in winsock.h - included earlier in atlbase.h) so I
added a

#  ifdef FD_SETSIZE
#   undef FD_SETSIZE
#  endif

 on line 258 in sfl.h

Should these changes be included in the source?

Angus Lord