On Mon, Nov 06, 2006 at 05:31:13PM -0500, William Pence wrote:
> Notice the test for "defined(arm)" is included here, but I am not at all 
> sure this is appropriate.  Are all arm architectures little-endian?

No, but arm in Debian is currently only little-endian. There's an unofficial
armeb port, though.

> Would one expect that "_MIPS_SZLONG" would be defined on arm platforms?

Doesn't look like it, as testing on leisner (arm) and vaughan (mipsel)
indicates:

  [EMAIL PROTECTED]:~$ cat test.c
  #include <stdio.h>
  #include <sys/types.h>
  #include <stdlib.h>
  #include <limits.h>
  
  int main()
  {
  #ifdef _MIPS_SZLONG
        printf("defined\n");
  #else
        printf("not defined\n");
  #endif
  }

  [EMAIL PROTECTED]:~$ ./test
  not defined
  [EMAIL PROTECTED]:~$ ./test
  defined

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to