IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2010, 12:36:40 PM (16 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20100823

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/ohana.h

    r28645 r29537  
    9494};
    9595
    96 /* note: in the Ohana tree, the byte order is determined by the ARCH variable
    97    if you have a small endian machine that is not listed here, the test
    98    program 'typestest' should fail */
     96/* Some notes on the Ohana BYTE_SWAP macros:
     97
     98   1) BYTE_SWAP is set in this file based on the environment variable 'ARCH', which is in turn
     99   set by the psconfig system (or is set manually by the builder). 
     100
     101   2) BYTE_SWAP is only used when building the Ohana tree: code which links against Ohana
     102   (eg, libkapa or others) does not need to have this value correctly set.
     103   
     104   3) the libohana build tests for the validity of the BYTE_SWAP choice by running the test
     105   program 'typestest' and raising an error if the tests fail.
     106
     107   4) if your build fails due to the typestest program, check your value of 'ARCH' and if
     108   necessary add it to the list below.
     109
     110*/
     111
    99112# ifndef BYTE_SWAP
    100113# ifdef linux
     
    117130# define BYTE_SWAP
    118131# endif
    119 # else
     132# endif /* BYTE_SWAP */
     133
     134/* other Ohana components use these two values to check that ohana.h was correctly included */
     135# ifndef BYTE_SWAP
    120136# define NOT_BYTE_SWAP
    121 # endif /* BYTE_SWAP */
     137# endif
    122138
    123139# ifndef NAN
Note: See TracChangeset for help on using the changeset viewer.