Skip to content

Commit ed10272

Browse files
Only add the LZ4_VERSION string to the module if building against bundled lz4 library
1 parent 1147197 commit ed10272

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/python-lz4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ void initlz4(void)
240240

241241
PyModule_AddStringConstant(module, "VERSION", VERSION);
242242
PyModule_AddStringConstant(module, "__version__", VERSION);
243+
#ifdef LZ4_VERSION /* Only defined if we're building against bundled lz4 */
243244
PyModule_AddStringConstant(module, "LZ4_VERSION", LZ4_VERSION);
245+
#endif
244246

245247
#if PY_MAJOR_VERSION >= 3
246248
return module;

0 commit comments

Comments
 (0)