Skip to content

Commit 862d50a

Browse files
committed
does it work like this?
1 parent 9ced5c4 commit 862d50a

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Modules/_hashlib/hashlib_buffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* The symbol is exported for '_hashlib' and HACL*-based extension modules.
1616
*/
17-
PyAPI_FUNC(int)
17+
extern int
1818
_Py_hashlib_data_argument(PyObject **res, PyObject *data, PyObject *string);
1919

2020
/*
@@ -25,7 +25,7 @@ _Py_hashlib_data_argument(PyObject **res, PyObject *data, PyObject *string);
2525
*
2626
* The symbol is exported for '_hashlib' and HACL*-based extension modules.
2727
*/
28-
PyAPI_FUNC(int)
28+
extern int
2929
_Py_hashlib_get_buffer_view(PyObject *obj, Py_buffer *view);
3030

3131
/*

PCbuild/_hashlib.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
</ItemDefinitionGroup>
100100
<ItemGroup>
101101
<ClCompile Include="..\Modules\_hashopenssl.c" />
102+
<ClCompile Include="..\Modules\_hashlib\hashlib_fetch.c" />
102103
</ItemGroup>
103104
<ItemGroup>
104105
<ClInclude Include="..\Modules\_hashlib\hashlib_buffer.h" />

PCbuild/_hashlib.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<ClCompile Include="..\Modules\_hashopenssl.c">
1313
<Filter>Source Files</Filter>
1414
</ClCompile>
15+
<ClCompile Include="..\Modules\_hashlib\hashlib_buffer.c">
16+
<Filter>Source Files</Filter>
17+
</ClCompile>
1518
</ItemGroup>
1619
<ItemGroup>
1720
<ResourceCompile Include="..\PC\python_nt.rc">

PCbuild/pythoncore.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@
447447
<PreprocessorDefinitions>HACL_CAN_COMPILE_VEC128;%(PreprocessorDefinitions)</PreprocessorDefinitions>
448448
<AdditionalOptions>/arch:AVX %(AdditionalOptions)</AdditionalOptions>
449449
</ClCompile>
450-
<ClCompile Include="..\Modules\_hashlib\hashlib_buffer.c" />
451450
<ClInclude Include="..\Modules\_hashlib\hashlib_buffer.h" />
452451
<ClInclude Include="..\Modules\_hashlib\hashlib_fetch.h" />
453452
<ClInclude Include="..\Modules\_hashlib\hashlib_mutex.h" />

PCbuild/pythoncore.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -980,9 +980,6 @@
980980
<ClCompile Include="..\Modules\_hacl\Hacl_Streaming_HMAC.c">
981981
<Filter>Modules</Filter>
982982
</ClCompile>
983-
<ClCompile Include="..\Modules\_hashlib\hashlib_buffer.c">
984-
<Filter>Modules\_hashlib</Filter>
985-
</ClCompile>
986983
<ClCompile Include="..\Modules\_heapqmodule.c">
987984
<Filter>Modules</Filter>
988985
</ClCompile>

0 commit comments

Comments
 (0)