summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-21 23:08:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-21 23:08:34 +0300
commit8c2496120f46b59641cac79a431c51d12606a6dd (patch)
treea18dc51a5f024fcda5c7655eff9efce00bd96a0b /protocols/Discord/src/proto.h
parentde49de5f2c3fd25902a263b047ff8c71f5d43545 (diff)
Discord: two more fixed comparisons
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index 1dd1b733b7..e052023d31 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -1,6 +1,11 @@
typedef __int64 SnowFlake;
+__forceinline int compareInt64(const SnowFlake i1, const SnowFlake i2)
+{
+ return (i1 == i2) ? 0 : (i1 < i2) ? -1 : 1;
+}
+
class CDiscordProto;
typedef void (CDiscordProto::*HttpCallback)(NETLIBHTTPREQUEST*, struct AsyncHttpRequest*);
typedef void (CDiscordProto::*GatewayHandlerFunc)(const JSONNode&);