From cb33c0a0498628ded34a5c9719d6807047a8b2cd Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 4 Oct 2018 14:46:11 +0900 Subject: events.h: #ifndef DISABLE_EVENTTYPE -> #ifdef ENABLE_EVENTTYPE_ALIAS This turns off the legacy EventType namespace with event type aliases (EventType::RoomMessageEvent etc.). To still use it, pass - DENABLE_EVENTTYPE_ALIAS to the compiler. --- lib/events/event.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/events') diff --git a/lib/events/event.h b/lib/events/event.h index cd23a818..5b33628f 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -21,8 +21,8 @@ #include "converters.h" #include "logging.h" -#ifndef DISABLE_EVENTTYPE -#define USE_EVENTTYPE 1 +#ifdef ENABLE_EVENTTYPE_ALIAS +#define USE_EVENTTYPE_ALIAS 1 #endif namespace QMatrixClient @@ -292,7 +292,7 @@ namespace QMatrixClient } \ // End of macro -#ifdef USE_EVENTTYPE +#ifdef USE_EVENTTYPE_ALIAS namespace EventType { inline event_type_t logEventType(event_type_t id, const char* idName) -- cgit v1.2.3