Changeset 29537 for trunk/Ohana/src/libohana/include/ohana.h
- Timestamp:
- Oct 25, 2010, 12:36:40 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libohana/include/ohana.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libohana/include/ohana.h
r28645 r29537 94 94 }; 95 95 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 99 112 # ifndef BYTE_SWAP 100 113 # ifdef linux … … 117 130 # define BYTE_SWAP 118 131 # 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 120 136 # define NOT_BYTE_SWAP 121 # endif /* BYTE_SWAP */137 # endif 122 138 123 139 # ifndef NAN
Note:
See TracChangeset
for help on using the changeset viewer.
