Browse files

added VERSION_ATLEAST macro

  • Loading branch information...
1 parent 640ecab commit 7338e3b67da4f68441809d6541b2584b3f1de30b Tobias Leich committed Dec 1, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/defines.h
View
4 src/defines.h
@@ -55,4 +55,8 @@ extern PerlInterpreter *parent_perl;
#define LEAVE_TLS_CONTEXT /* TLS context not enabled */
#endif
+/* VERSION_ATLEAST(have_triplet, need_triplet) */
+#define VERSION_ATLEAST(a, b, c, d, e, f) (a > d || (a == d && b > e) \
+ || (a == d && b == e && c >= f))
+
#endif

0 comments on commit 7338e3b

Please sign in to comment.