@@ -136,13 +136,13 @@ void load_raw(std::streambuf &sb, void *address, std::size_t count) {
136136template <typename T> T load_value (std::streambuf &sb, int use_byte_order) {
137137 T tmp;
138138 load_raw (sb, &tmp, sizeof (T));
139- if (sizeof (T) > 1 && use_byte_order != BOOST_BYTE_ORDER ) endian_reverse_inplace (tmp);
139+ if (sizeof (T) > 1 && use_byte_order != LSL_BYTE_ORDER ) endian_reverse_inplace (tmp);
140140 return tmp;
141141}
142142
143143// / Save a value to a stream buffer with correct endian treatment.
144144template <typename T> void save_value (std::streambuf &sb, T v, int use_byte_order) {
145- if (use_byte_order != BOOST_BYTE_ORDER ) endian_reverse_inplace (v);
145+ if (use_byte_order != LSL_BYTE_ORDER ) endian_reverse_inplace (v);
146146 save_raw (sb, &v, sizeof (T));
147147}
148148
@@ -181,7 +181,7 @@ void sample::save_streambuf(
181181 }
182182 } else {
183183 // write numeric data in binary
184- if (use_byte_order == BOOST_BYTE_ORDER || format_sizes[format_] == 1 ) {
184+ if (use_byte_order == LSL_BYTE_ORDER || format_sizes[format_] == 1 ) {
185185 save_raw (sb, &data_, datasize ());
186186 } else {
187187 memcpy (scratchpad, &data_, datasize ());
@@ -227,7 +227,7 @@ void sample::load_streambuf(
227227 } else {
228228 // read numeric channel data
229229 load_raw (sb, &data_, datasize ());
230- if (use_byte_order != BOOST_BYTE_ORDER && format_sizes[format_] > 1 ) convert_endian (&data_);
230+ if (use_byte_order != LSL_BYTE_ORDER && format_sizes[format_] > 1 ) convert_endian (&data_);
231231 if (suppress_subnormals && format_float[format_]) {
232232 if (format_ == cft_float32) {
233233 for (uint32_t *p = (uint32_t *)&data_, *e = p + num_channels_; p < e; p++)
0 commit comments