summaryrefslogtreecommitdiff
path: root/src/openssl.c
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-02-27 15:25:10 +1100
committerdaurnimator <quae@daurnimator.com>2017-02-27 15:35:14 +1100
commit419494337e30fa3fa539990e8ae7c314ce01eaab (patch)
tree34bda624d789b13676a173082e0efc8d2514fc4e /src/openssl.c
parent25337767bfb8d8d40c142e4acc6bc11116b15266 (diff)
downloadluaossl-419494337e30fa3fa539990e8ae7c314ce01eaab.tar.gz
luaossl-419494337e30fa3fa539990e8ae7c314ce01eaab.tar.bz2
luaossl-419494337e30fa3fa539990e8ae7c314ce01eaab.zip
Add lua_getfield compatibility macro that returns the type (as it does in 5.3)
Diffstat (limited to '')
-rw-r--r--src/openssl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/openssl.c b/src/openssl.c
index 9ea9469..1307852 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -74,9 +74,7 @@
74#include <lualib.h> 74#include <lualib.h>
75#include <lauxlib.h> 75#include <lauxlib.h>
76 76
77#if LUA_VERSION_NUM < 502
78#include "compat52.h" 77#include "compat52.h"
79#endif
80 78
81#define GNUC_2VER(M, m, p) (((M) * 10000) + ((m) * 100) + (p)) 79#define GNUC_2VER(M, m, p) (((M) * 10000) + ((m) * 100) + (p))
82#define GNUC_PREREQ(M, m, p) (__GNUC__ > 0 && GNUC_2VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) >= GNUC_2VER((M), (m), (p))) 80#define GNUC_PREREQ(M, m, p) (__GNUC__ > 0 && GNUC_2VER(__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__) >= GNUC_2VER((M), (m), (p)))