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

Re: Also


On Wednesday 29 July 2009 17:38:23 Mark Martin wrote:
> On solaris sparc #define WORDS_BIG_ENDIAN 1 in config.h APPLE define does
> no figure this out
>
> here's some code that will figure things out for you at runtime is you
> want it.
>
>     unsigned long x = 0x01020304;
>     unsigned char *c = (unsigned char *)&x;
>     if(*c == 4)
>         printf("little\n");
>     else if(*c == 1)
>         printf("big\n");
>     return 0;

This will be fixed with libssh 0.3.2. A lot of Solaris compile issues has been 
fixed since libssh 0.3.1.


	-- andreas

Attachment: signature.asc
Description: This is a digitally signed message part.


References:
Also"Mark Martin" <mark@xxxxxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org