Fix compilation on linux

Closes tgoyne/aegisub#4.
This commit is contained in:
Thomas Goyne 2014-04-03 17:24:27 -07:00
parent b8d67b3d8e
commit 54fa37c855
2 changed files with 5 additions and 0 deletions

View file

@ -23,6 +23,9 @@
#include <libaegisub/exception.h>
#include <libaegisub/signal.h>
// X11 is awesome and defines Bool to int
#undef Bool
namespace agi {
DEFINE_BASE_EXCEPTION_NOINNER(OptionValueError, Exception)
DEFINE_SIMPLE_EXCEPTION_NOINNER(OptionValueErrorInvalidType, OptionValueError, "options/invalid_type")

View file

@ -42,6 +42,8 @@
#include <wx/stattext.h>
#include <wx/treebook.h>
#undef Bool
#define OPTION_UPDATER(type, evttype, opt, body) \
class type { \
std::string name; \