Move al::deque to a common header

master
Chris Robinson 2021-01-25 09:24:10 -08:00
parent 71e6bcbd62
commit ac5d40e40a
3 changed files with 18 additions and 7 deletions

View File

@ -610,6 +610,7 @@ set(COMMON_OBJS
common/albyte.h
common/alcomplex.cpp
common/alcomplex.h
common/aldeque.h
common/alfstream.cpp
common/alfstream.h
common/almalloc.cpp

View File

@ -12,6 +12,7 @@
#include "AL/alc.h"
#include "alcontext.h"
#include "aldeque.h"
#include "almalloc.h"
#include "alnumeric.h"
#include "alu.h"
@ -22,13 +23,6 @@
struct ALbuffer;
struct ALeffectslot;
namespace al {
template<typename T>
using deque = std::deque<T, al::allocator<T>>;
} // namespace al
#define DEFAULT_SENDS 2

16
common/aldeque.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef ALDEQUE_H
#define ALDEQUE_H
#include <deque>
#include "almalloc.h"
namespace al {
template<typename T>
using deque = std::deque<T, al::allocator<T>>;
} // namespace al
#endif /* ALDEQUE_H */