Skip to content

Commit

Permalink
Merge pull request #12 from jcharlong/hotfix/define_posix_c_source
Browse files Browse the repository at this point in the history
Define "_POSIX_C_SOURCE" before
  • Loading branch information
qchateau committed Jan 29, 2020
2 parents f1dd326 + 9704dff commit dcda0c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions cbitstruct/_cbitstruct.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>

#define PY_SSIZE_T_CLEAN

#include <Python.h>

#define BIT_MASK(__TYPE__, __ONE_COUNT__) \
(((__TYPE__)(-((__ONE_COUNT__) != 0))) \
& (((__TYPE__)-1) >> ((sizeof(__TYPE__) * CHAR_BIT) - (__ONE_COUNT__))))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

setup(
name="cbitstruct",
version="1.0.3",
version="1.0.4",
author="Quentin CHATEAU",
author_email="[email protected]",
license="GPLv3",
Expand Down

0 comments on commit dcda0c1

Please sign in to comment.