summaryrefslogtreecommitdiff
path: root/include/m_genmenu.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-09-02 14:57:11 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-09-02 14:57:11 +0000
commit942e3afef28ee689e50bf6225df6fe742258dcac (patch)
tree2489cce3be90c12223e83fc2eee718b9f7115e06 /include/m_genmenu.h
parente97507aef71bc2bfa51b08e598f21ffe7600880a (diff)
terrible crutch to fix VS2010 stupidity
git-svn-id: http://svn.miranda-ng.org/main/trunk@15151 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_genmenu.h')
-rw-r--r--include/m_genmenu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index 2b1eac7f88..2581c59b0c 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -56,6 +56,12 @@ struct TMO_MenuItem
MUUID uid;
};
+#if _MSC_VER <= 1600
+ #define SET_UID(M,A,B,C,D1,D2,D3,D4,D5,D6,D7,D8) { MUUID tmp = { A, B, C, {D1,D2,D3,D4,D5,D6,D7,D8}}; M.uid = tmp; }
+#else
+ #define SET_UID(M,A,B,C,D1,D2,D3,D4,D5,D6,D7,D8) { M.uid = { A, B, C, {D1,D2,D3,D4,D5,D6,D7,D8}}; }
+#endif
+
#ifdef __cplusplus
struct CMenuItem : public TMO_MenuItem
{