Skip to content

Commit

Permalink
added VERSION_ATLEAST macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Leich authored and Tobias Leich committed Dec 1, 2011
1 parent 640ecab commit 7338e3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/defines.h
Expand Up @@ -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.