mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 20:52:30 +00:00
Throw error if attempting to use both xmlrpc-c and tinyxml2
This commit is contained in:
@@ -37,7 +37,9 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_XMLRPC_TINYXML2
|
||||
#ifndef HAVE_XMLRPC_C
|
||||
#ifdef HAVE_XMLRPC_C
|
||||
#error HAVE_XMLRPC_C and HAVE_XMLRPC_TINYXML2 cannot be used together. Please choose only one
|
||||
#endif
|
||||
|
||||
#include <cctype>
|
||||
#include <string>
|
||||
@@ -449,5 +451,4 @@ bool XmlRpc::is_valid() const { return m_isValid; }
|
||||
|
||||
}
|
||||
|
||||
#endif // ifndef HAVE_XMLRPC_C
|
||||
#endif // ifdef HAVE_XMLRPC_TINYXML2
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user