summaryrefslogtreecommitdiff
path: root/src/openssl.c
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-09-01 14:20:21 +1000
committerdaurnimator <quae@daurnimator.com>2017-09-01 14:20:21 +1000
commitd06f504deb34bc49f7935f386508217270e1bcb7 (patch)
tree9bbc7982afcdff2878b3ecab9886e7211f2fe8e1 /src/openssl.c
parent068543e777a2a8cb2fea33e9569bfdd0593f7946 (diff)
downloadluaossl-rel-20170901.tar.gz
luaossl-rel-20170901.tar.bz2
luaossl-rel-20170901.zip
Only use lua-compat-5.3 if running < 5.3rel-20170901
Diffstat (limited to 'src/openssl.c')
-rw-r--r--src/openssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index cb4bd48..80d3dfe 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -75,7 +75,9 @@
75#include <lualib.h> 75#include <lualib.h>
76#include <lauxlib.h> 76#include <lauxlib.h>
77 77
78#if LUA_VERSION_NUM < 503
78#include "../vendor/compat53/c-api/compat-5.3.h" 79#include "../vendor/compat53/c-api/compat-5.3.h"
80#endif
79 81
80#define GNUC_2VER(M, m, p) (((M) * 10000) + ((m) * 100) + (p)) 82#define GNUC_2VER(M, m, p) (((M) * 10000) + ((m) * 100) + (p))
81#define GNUC_PREREQ(M, m, p) (__GNUC__ > 0 && GNUC_2VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) >= GNUC_2VER((M), (m), (p))) 83#define GNUC_PREREQ(M, m, p) (__GNUC__ > 0 && GNUC_2VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) >= GNUC_2VER((M), (m), (p)))