mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Reintroduces cstring.h to a few files that previously got it implicitly.
This commit is contained in:
parent
2dc1d4443e
commit
d36e9d0b0d
@ -7,7 +7,9 @@
|
||||
//
|
||||
|
||||
#include "TIA.hpp"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
|
||||
using namespace Atari2600;
|
||||
namespace {
|
||||
@ -379,7 +381,7 @@ void TIA::output_for_cycles(int number_of_cycles) {
|
||||
|
||||
if(!output_cursor) {
|
||||
if(line_end_function_) line_end_function_(collision_buffer_);
|
||||
memset(collision_buffer_, 0, sizeof(collision_buffer_));
|
||||
std::memset(collision_buffer_, 0, sizeof(collision_buffer_));
|
||||
|
||||
ball_.motion_time %= 228;
|
||||
player_[0].motion_time %= 228;
|
||||
|
@ -8,6 +8,8 @@
|
||||
|
||||
#include "SoundGenerator.hpp"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
using namespace Electron;
|
||||
|
||||
SoundGenerator::SoundGenerator(Concurrency::DeferringAsyncTaskQueue &audio_queue) :
|
||||
@ -21,7 +23,7 @@ void SoundGenerator::get_samples(std::size_t number_of_samples, int16_t *target)
|
||||
counter_ = (counter_ + 1) % ((divider_+1) * 2);
|
||||
}
|
||||
} else {
|
||||
memset(target, 0, sizeof(int16_t) * number_of_samples);
|
||||
std::memset(target, 0, sizeof(int16_t) * number_of_samples);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "Video.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user