all repos — mgba @ c189f48c631622b9a1d6d6da1c12110411623ecd

mGBA Game Boy Advance Emulator

Util: RingFIFO build fix
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Oct 2015 18:47:48 -0700
commit

c189f48c631622b9a1d6d6da1c12110411623ecd

parent

50402c830729f2ba5a6fc3e6facfd8b258f7f97d

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/util/ring-fifo.csrc/util/ring-fifo.c

@@ -5,6 +5,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this

* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "ring-fifo.h" +#include "util/memory.h" + void RingFIFOInit(struct RingFIFO* buffer, size_t capacity, size_t maxalloc) { buffer->data = anonymousMemoryMap(capacity); buffer->capacity = capacity;

@@ -13,7 +15,7 @@ RingFIFOClear(buffer);

} void RingFIFODeinit(struct RingFIFO* buffer) { - memoryMapFree(buffer->data, buffer->capacity); + mappedMemoryFree(buffer->data, buffer->capacity); buffer->data = 0; }