summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_list.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-13 13:13:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-13 13:13:20 +0300
commit38b42a8f83ded6065562610b18bd4abb0f40469f (patch)
tree2101dd8e0b11ebfe1e1acf40474e20cbbb1a1c26 /protocols/JabberG/src/jabber_list.h
parentec0c2aac4f3cbdc861c76d974c852861091113a6 (diff)
fix for broken projects
Diffstat (limited to 'protocols/JabberG/src/jabber_list.h')
-rw-r--r--protocols/JabberG/src/jabber_list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_list.h b/protocols/JabberG/src/jabber_list.h
index 77c47feb8e..3b7dab0f29 100644
--- a/protocols/JabberG/src/jabber_list.h
+++ b/protocols/JabberG/src/jabber_list.h
@@ -28,6 +28,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "jabber_caps.h"
+#define LISTFOREACH(var__, obj__, list__) \
+ for (int var__ = 0; (var__ = obj__->ListFindNext(list__, var__)) >= 0; ++var__)
+#define LISTFOREACH_NODEF(var__, obj__, list__) \
+ for (var__ = 0; (var__ = obj__->ListFindNext(list__, var__)) >= 0; ++var__)
+
enum JABBER_LIST
{
LIST_ROSTER, // Roster list