Changeset 11158 for OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_swap.cpp
- Timestamp:
- 03/05/10 11:58:47 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_swap.cpp
r10387 r11158 17 17 #include <stdio.h> 18 18 #include <string.h> 19 #include <osg/Endian> 19 20 20 21 /* trpage_swap.h … … 23 24 24 25 #include <trpage_swap.h> 25 26 26 /* 27 27 ** func: swap_two( in, out ) … … 201 201 TX_CPPDECL trpgEndian trpg_cpu_byte_order(void) 202 202 { 203 static char big_endian_100[2] = { 0, 100 }; 204 205 if ( (*((short*) big_endian_100)) == 100 ) 203 if (osg::getCpuByteOrder()==osg::BigEndian) 206 204 return BigEndian; 207 205 else
