Show
Ignore:
Timestamp:
03/05/10 11:58:47 (4 years ago)
Author:
robert
Message:

Fixed warning

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_swap.cpp

    r10387 r11158  
    1717#include <stdio.h> 
    1818#include <string.h> 
     19#include <osg/Endian> 
    1920 
    2021/* trpage_swap.h 
     
    2324 
    2425#include <trpage_swap.h> 
    25  
    2626/* 
    2727** func:    swap_two( in, out ) 
     
    201201TX_CPPDECL trpgEndian trpg_cpu_byte_order(void) 
    202202{ 
    203     static char big_endian_100[2] = { 0, 100 }; 
    204  
    205     if ( (*((short*) big_endian_100)) == 100 ) 
     203    if (osg::getCpuByteOrder()==osg::BigEndian) 
    206204        return BigEndian; 
    207205    else