Skip to content

Commit 230bce6

Browse files
committed
Fix preprocessor bugs
1 parent cf25636 commit 230bce6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/isal/igzip_lib.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,6 @@ PyDoc_STRVAR(IgzipDecompressor_needs_input_doc,
660660
PyDoc_STRVAR(IgzipDecompressor_crc_doc,
661661
"The checksum that is saved if DECOMP_ZLIB* or DECOMP_GZIP* flags are used.");
662662

663-
#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
664-
665663
static PyMemberDef IgzipDecompressor_members[] = {
666664
{"eof", T_BOOL, offsetof(IgzipDecompressor, eof),
667665
READONLY, IgzipDecompressor_eof__doc__},

src/isal/isal_zlib_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ newcompobject(PyTypeObject *type)
222222
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION == 7
223223
// Apparently the type refcount is not increased automatically with
224224
// PyObject_New on 3.7
225-
# pragma message: Include python 3.7 type ref fix.
225+
# pragma message("Include python 3.7 type ref fix.")
226226
Py_INCREF(type);
227227
#endif
228228
if (self == NULL)

src/isal/python_args.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define PY_SSIZE_T_CLEAN
1414
#include <Python.h>
1515

16-
#pragma message "Including code from CPython getargs.c to enable faster arg parsing on python 3.7"
16+
#pragma message("Including code from CPython getargs.c to enable faster arg parsing on python 3.7")
1717
#define IS_END_OF_FORMAT(c) (c == '\0' || c == ';' || c == ':')
1818

1919
#define FLAG_COMPAT 1

0 commit comments

Comments
 (0)