Ticket #4698: serializer.haiku.patch

File serializer.haiku.patch, 975 bytes (added by SF/begasus, 12 years ago)

fix for the 2.95.3 compilation

  • serializer.h

    old new  
    8888        inline bool isSaving() { return (_saveStream != 0); }
    8989        inline bool isLoading() { return (_loadStream != 0); }
    9090
     91        SYNC_AS(Byte, byte, 1)
     92
     93        SYNC_AS(Uint16LE, uint16, 2)
     94        SYNC_AS(Uint16BE, uint16, 2)
     95        SYNC_AS(Sint16LE, int16, 2)
     96        SYNC_AS(Sint16BE, int16, 2)
     97
     98        SYNC_AS(Uint32LE, uint32, 4)
     99        SYNC_AS(Uint32BE, uint32, 4)
     100        SYNC_AS(Sint32LE, int32, 4)
     101        SYNC_AS(Sint32BE, int32, 4)
     102
    91103        /**
    92104         * Returns true if an I/O failure occurred.
    93105         * This flag is never cleared automatically. In order to clear it,
     
    216228                }
    217229        }
    218230
    219         SYNC_AS(Byte, byte, 1)
    220 
    221         SYNC_AS(Uint16LE, uint16, 2)
    222         SYNC_AS(Uint16BE, uint16, 2)
    223         SYNC_AS(Sint16LE, int16, 2)
    224         SYNC_AS(Sint16BE, int16, 2)
    225 
    226         SYNC_AS(Uint32LE, uint32, 4)
    227         SYNC_AS(Uint32BE, uint32, 4)
    228         SYNC_AS(Sint32LE, int32, 4)
    229         SYNC_AS(Sint32BE, int32, 4)
    230231};
    231232
    232233#undef SYNC_AS