Changeset 584

Show
Ignore:
Timestamp:
07/03/08 12:46:33 (5 months ago)
Author:
scott
Message:

linux siiiiede

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/math-vector.h

    r561 r584  
    145145inline bool equal( const vec3 &v0, const vec3 &v1, float tol ) { return fabsf( v0.x - v1.x ) <= tol && fabsf( v0.y - v1.y ) <= tol && fabsf( v0.z - v1.z ) <= tol; } 
    146146 
    147 __declspec( align( 16 ) ) struct vec4 
     147ALIGN(16) struct vec4 
    148148{ 
    149149public: 
  • trunk/common/util.h

    r540 r584  
    150150{ 
    151151public: 
    152         bad_int_cast( void ) : std::exception( "Integer conversion caused loss of data." ) { } 
    153         virtual ~bad_int_cast( void ) { } 
     152        bad_int_cast( void ) : std::exception( ) { } 
     153        virtual ~bad_int_cast( void ) throw() { } 
    154154}; 
    155155 
     
    158158{ 
    159159private: 
    160         template< size_t num_bits
     160        template< size_t num_bits2
    161161        struct signed_max 
    162162        { 
  • trunk/common/x42_file.h

    r181 r584  
    402402 
    403403#endif 
     404 
  • trunk/libx42/include/x42compilerutils.h

    r322 r584  
    4343#endif 
    4444 
     45 
     46#ifdef __GNUC__ 
     47#include <sys/types.h> 
    4548#endif 
     49#endif 
  • trunk/libx42/local.h

    r469 r584  
    4444#define X42_RF_LOAD_SWAPPED                     0x0001 
    4545 
     46#ifdef __cplusplus 
     47#define X42_CONST_CAST( T, v ) const_cast< T* >( v ) 
     48#else 
     49#define X42_CONST_CAST( T, v ) ((T*)(v)) 
     50#endif 
     51 
     52 
    4653#ifdef _MSC_VER 
    4754 
     
    4956#define ALWAYS_INLINE static __forceinline 
    5057#define REF_PARAM( x ) (void)sizeof( x ) 
    51  
    52 #ifdef __cplusplus 
    53 #define X42_CONST_CAST( T, v ) const_cast< T* >( v ) 
    54 #else 
    55 #define X42_CONST_CAST( T, v ) ((T*)(v)) 
    56 #endif 
    5758 
    5859#if _MSC_VER >= 1400 
     
    6768 
    6869#else 
     70#include <stdint.h> 
    6971#define INLINE static 
    7072#define ALWAYS_INLINE static 
     
    7678 
    7779#define NO_DEFAULT default: break; 
     80 
     81#define _alloca(X) alloca(X) 
     82 
    7883#endif 
    7984 
  • trunk/libx42pp/error.cpp

    r462 r584  
    6060} 
    6161 
    62 X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg ) throw( ... ) 
     62X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg )  
    6363{ 
    6464        onErr( code, msg ); 
  • trunk/libx42pp/include/x42error.h

    r233 r584  
    7474}; 
    7575 
    76 X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg ) throw( ... )
     76X42_EXPORT X42_NORETURN void X42_CALL fail( int code, const char *msg )
    7777X42_EXPORT void X42_CALL warn( int code, const char *msg ); 
    7878 
  • trunk/libx42pp/include/x42math-vector.h

    r469 r584  
    146146inline bool equal( const vec3 &v0, const vec3 &v1, float tol ) { return fabsf( v0.x - v1.x ) <= tol && fabsf( v0.y - v1.y ) <= tol && fabsf( v0.z - v1.z ) <= tol; } 
    147147 
    148 __declspec( align( 16 ) ) struct vec4 
     148struct vec4 
    149149{ 
    150150public: 
  • trunk/libx42pp/include/x42types.h

    r469 r584  
    2727#include <basetsd.h> 
    2828#else 
    29 #error "Include whatever'll bring IntPtr on your platform here." 
     29#include <stdint.h> 
    3030#endif 
    3131 
     
    378378        typedef MemStreamIterator< const T > const_iterator; 
    379379 
    380         typedef T &reference; 
    381         typedef MemStreamIterator< T > iterator; 
    382         typedef MemStreamIterator< const T > const_iterator; 
    383380        typedef typename MemStreamIterator< T >::difference_type difference_type; 
    384381 
  • trunk/maya2q3/Makefile

    r156 r584  
    55VERS=1.0 
    66DEBUG_FLAGS= 
     7 
     8CC = gcc-4.1 
     9C++ = g++-4.1 
    710 
    811default: linux/bin/maya2q3.$(EXT) 
  • trunk/maya2q3/NVMeshMender.h

    r34 r584  
    130130                        }; 
    131131            */ 
    132                         Vertex::Vertex():pos(0.0f ,0.0f ,0.0f ) 
     132                        Vertex():pos(0.0f ,0.0f ,0.0f ) 
    133133                                                                                ,normal(0.0f ,0.0f ,0.0f ) 
    134134                                                                                ,s(0.0f ) 
  • trunk/maya2q3/common.h

    r572 r584  
    176176#endif 
    177177 
     178#ifdef __GNUC__ 
     179#define ALIGN(x) __attribute__((aligned(x))) 
     180#else 
     181#define ALIGN(x) __declspec(align(x)) 
     182#endif 
     183 
    178184#include <boost/smart_ptr.hpp> 
    179185 
  • trunk/maya2q3/q3util.h

    r548 r584  
    144144 
    145145#endif 
     146 
  • trunk/maya2q3/util-maya2q3.h

    r540 r584  
    199199        } 
    200200 
    201         virtual const char* what() const 
     201        virtual const char* what() const throw() 
    202202        { 
    203203                return statcode.errorString().asChar(); 
     
    244244 
    245245#endif 
     246 
  • trunk/x42maya/Export-Gather.cpp

    r582 r584  
    571571                                        if( triVerts[t] == faceVerts[k] ) 
    572572                                        { 
    573                                                 group.indices.push_back( util::checked_int_cast< ushort >( x42Verts[k] ) ); 
     573                                                group.indices.push_back( util::checked_int_cast< x42::index >( x42Verts[k] ) ); 
    574574                                                break; 
    575575                                        } 
     
    842842                                        if( triVerts[t] == faceVerts[k] ) 
    843843                                        { 
    844                                                 group.indices.push_back( util::checked_int_cast< ushort >( x42Verts[k] ) ); 
     844                                                group.indices.push_back( util::checked_int_cast< x42::index >( x42Verts[k] ) ); 
    845845                                                break; 
    846846                                        } 
  • trunk/x42maya/common.h

    r463 r584  
    3636#else 
    3737#define DLLEXPORT 
     38#define CDECL 
    3839#endif 
    3940 
     
    5859#define NT_PLUGIN 
    5960#define REQUIRE_IOSTREAM 
    60 #else 
    61 #error "Unsupported platform." 
    6261#endif 
    6362