Changeset 10410
- Timestamp:
- 06/25/09 15:26:26 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Endian (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Endian
r5471 r10410 27 27 inline Endian getCpuByteOrder() 28 28 { 29 static char big_endian_1[2] = { 0, 1 }; 29 union { 30 char big_endian_1[2]; 31 short is_it_really_1; 32 } u; 33 u.big_endian_1[0] = 0; 34 u.big_endian_1[1] = 1; 30 35 31 if ( (*((short*) big_endian_1))== 1)36 if (u.is_it_really_1 == 1) 32 37 return BigEndian; 33 38 else
