mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
Make undo_tests.cpp compile on OS X with SDK 4.4u
This commit is contained in:
parent
ad856b2a55
commit
75ad9552e4
@ -8,12 +8,19 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <functional>
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
|
|
||||||
#include "undo/undo_command.h"
|
#include "undo/undo_command.h"
|
||||||
#include "undo/undo_history.h"
|
#include "undo/undo_history.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <functional>
|
||||||
|
using namespace std;
|
||||||
|
#else
|
||||||
|
#include <tr1/functional>
|
||||||
|
using namespace std::tr1;
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace undo;
|
using namespace undo;
|
||||||
|
|
||||||
class Cmd : public UndoCommand {
|
class Cmd : public UndoCommand {
|
||||||
@ -25,8 +32,8 @@ public:
|
|||||||
void redo() override { m_redo(); }
|
void redo() override { m_redo(); }
|
||||||
void undo() override { m_undo(); }
|
void undo() override { m_undo(); }
|
||||||
private:
|
private:
|
||||||
std::function<void()> m_redo;
|
function<void()> m_redo;
|
||||||
std::function<void()> m_undo;
|
function<void()> m_undo;
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST(Undo, Basics)
|
TEST(Undo, Basics)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user