Skip to content

Commit dcda0c1

Browse files
authored
Merge pull request #12 from jcharlong/hotfix/define_posix_c_source
Define "_POSIX_C_SOURCE" before
2 parents f1dd326 + 9704dff commit dcda0c1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

cbitstruct/_cbitstruct.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
#define PY_SSIZE_T_CLEAN
2+
#include <Python.h>
3+
14
#include <limits.h>
25
#include <stdbool.h>
36
#include <stdint.h>
47
#include <stdio.h>
58

6-
#define PY_SSIZE_T_CLEAN
7-
8-
#include <Python.h>
9-
109
#define BIT_MASK(__TYPE__, __ONE_COUNT__) \
1110
(((__TYPE__)(-((__ONE_COUNT__) != 0))) \
1211
& (((__TYPE__)-1) >> ((sizeof(__TYPE__) * CHAR_BIT) - (__ONE_COUNT__))))

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
setup(
2929
name="cbitstruct",
30-
version="1.0.3",
30+
version="1.0.4",
3131
author="Quentin CHATEAU",
3232
author_email="[email protected]",
3333
license="GPLv3",

0 commit comments

Comments
 (0)