[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libssh and Visual C++ (again)


On Thu, 27 Sep 2012 15:01, asn@xxxxxxxxxxxxxx said:

> The sftp functions should simply return an int64_t.

That would consist an ABI break!

With automake it is easy to insert the right type; cmake should be able
to do the same.


Salam-Shalom,

   Werner


p.s. In Libassuan I even wrote a tool to build header files, excerpt
from the Makefile:

  parts_of_assuan_h = \
	posix-includes.inc.h   w32-includes.inc.h \
	posix-types.inc.h      w32-types.inc.h \
	posix-fd-t.inc.h       w32-fd-t.inc.h  w32ce-fd-t.inc.h \
	posix-sock-nonce.inc.h w32-sock-nonce.inc.h \
	posix-sys-pth-impl.h   w32-sys-pth-impl.h \
        w32ce-add.h 

  mkheader: mkheader.c Makefile
  	$(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkheader.c
  
  assuan.h: assuan.h.in mkheader $(parts_of_assuan_h)
  	./mkheader $(host_os) $(srcdir)/assuan.h.in >$@

and assuan.h.in has code like this:

  #include <stdio.h>
  @include:sys/types.h@
  @include:unistd.h@
  #include <stdarg.h>
  
this was easier and more flexible than to do it in configure.  Works
even with just nmake.

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


Follow-Ups:
Re: libssh and Visual C++ (again)Christophe Baribaud <christophe.baribaud@xxxxxxxxx>
References:
libssh and Visual C++ (again)Christophe Baribaud <christophe.baribaud@xxxxxxxxx>
Re: libssh and Visual C++ (again)Werner Koch <wk@xxxxxxxxx>
Re: libssh and Visual C++ (again)Christophe Baribaud <christophe.baribaud@xxxxxxxxx>
Re: libssh and Visual C++ (again)Andreas Schneider <asn@xxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org