mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-22 15:39:52 +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"
|
||||
#endif
|
||||
|
||||
#include <functional>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "undo/undo_command.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;
|
||||
|
||||
class Cmd : public UndoCommand {
|
||||
@ -25,8 +32,8 @@ public:
|
||||
void redo() override { m_redo(); }
|
||||
void undo() override { m_undo(); }
|
||||
private:
|
||||
std::function<void()> m_redo;
|
||||
std::function<void()> m_undo;
|
||||
function<void()> m_redo;
|
||||
function<void()> m_undo;
|
||||
};
|
||||
|
||||
TEST(Undo, Basics)
|
||||
|
Loading…
x
Reference in New Issue
Block a user