Skip to content

Commit

Permalink
fix PilkError multiple definition
Browse files Browse the repository at this point in the history
lemisky committed Dec 21, 2022
1 parent 07230c5 commit f0c447e
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
# noinspection SpellCheckingInspection
setup(
name='pilk',
version='0.2.2',
version='0.2.3',
description='python silk voice library',
long_description=long_description,
long_description_content_type='text/markdown',
2 changes: 1 addition & 1 deletion src/silk/pilk_decode.c
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
static SKP_int32 rand_seed = 1;

// 声明自定义错误
PyObject *PilkError;
extern PyObject *PilkError;

PyObject *
silk_decode(PyObject *Py_UNUSED(module), PyObject *args, PyObject *keyword_args) {
2 changes: 1 addition & 1 deletion src/silk/pilk_encode.c
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ void swap_endian(
#endif

// 声明自定义错误
PyObject *PilkError;
extern PyObject *PilkError;

PyObject *
silk_encode(PyObject *Py_UNUSED(module), PyObject *args, PyObject *keyword_args) {

0 comments on commit f0c447e

Please sign in to comment.