IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3867 for trunk/pois/swig


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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.