17 lines
400 B
Diff
17 lines
400 B
Diff
--- a/src/_cffi_src/openssl/err.py
|
|
+++ b/src/_cffi_src/openssl/err.py
|
|
@@ -46,4 +46,13 @@
|
|
"""
|
|
|
|
CUSTOMIZATIONS = """
|
|
+#ifndef ERR_GET_LIB
|
|
+#define ERR_GET_LIB(l) (int)(((l) >> 24L) & 0x0FFL)
|
|
+#endif
|
|
+#ifndef ERR_GET_FUNC
|
|
+#define ERR_GET_FUNC(l) (int)(((l) >> 12L) & 0xFFFL)
|
|
+#endif
|
|
+#ifndef ERR_GET_REASON
|
|
+#define ERR_GET_REASON(l) (int)( (l) & 0xFFFL)
|
|
+#endif
|
|
"""
|