IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3867


Ignore:
Timestamp:
May 6, 2005, 11:12:56 AM (21 years ago)
Author:
rhl
Message:

Use AC_C_BIGENDIAN to detect endianness (setting PS_BIGENDIAN)

Location:
trunk/pois
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/configure.ac

    r3829 r3867  
    2121AC_SUBST([pois_CFLAGS])
    2222
    23 AC_PROG_SWIG(1.3.21)
     23AC_C_BIGENDIAN([PS_BIGENDIAN=1],[PS_BIGENDIAN=0])
     24               
     25AC_PROG_SWIG(1.3.24)
    2426SWIG_MULTI_MODULE_SUPPORT
    2527SWIG_PYTHON
  • trunk/pois/swig/simpleFits.c

    r3825 r3867  
    1616#include "simpleFits.h"
    1717   
    18 #if !defined(PS_LITTLE_ENDIAN)
    19 #   if defined(Darwin)
    20 #       define PS_LITTLE_ENDIAN 1
    21 #   endif
    22 #endif
    23 
    2418#define FITS_SIZE 2880
    2519
     
    437431    static int warned = 0;              /* Did we warn about BZERO/BSCALE? */
    438432
    439 #if defined(PS_LITTLE_ENDIAN)           /* we'll need to byte swap FITS */
     433#if PS_BIGENDIAN == 0                   /* we'll need to byte swap FITS */
    440434    if(bytes_per_pixel > 1) {
    441435        swap_bytes = 1;
Note: See TracChangeset for help on using the changeset viewer.