Skip to content

Commit a0fa849

Browse files
committed
Windows is not happy
1 parent 89c0e3c commit a0fa849

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Modules/_hashlib/hashlib_buffer.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@
1111
* - If 'data' and 'string' are both NULL, set '*res' to NULL and return 0.
1212
* - Otherwise, set '*res' to 'data' or 'string' and return 1. A deprecation
1313
* warning is set when 'string' is specified.
14+
*
15+
* The symbol is exported for '_hashlib' and HACL*-based extension modules.
1416
*/
15-
extern int
17+
PyAPI_FUNC(int)
1618
_Py_hashlib_data_argument(PyObject **res, PyObject *data, PyObject *string);
1719

1820
/*
1921
* Obtain a buffer view from a buffer-like object 'obj'.
2022
*
2123
* On success, store the result in 'view' and return 0.
2224
* On error, set an exception and return -1.
25+
*
26+
* The symbol is exported for '_hashlib' and HACL*-based extension modules.
2327
*/
24-
extern int
28+
PyAPI_FUNC(int)
2529
_Py_hashlib_get_buffer_view(PyObject *obj, Py_buffer *view);
2630

2731
/*

PCbuild/_hashlib.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
<ClCompile Include="..\Modules\_hashopenssl.c" />
102102
</ItemGroup>
103103
<ItemGroup>
104-
<ClInclude Include="..\Modules\_hashlib\hashlib.h" />
105104
<ClInclude Include="..\Modules\_hashlib\hashlib_buffer.h" />
106105
<ClInclude Include="..\Modules\_hashlib\hashlib_fetch.h" />
107106
<ClInclude Include="..\Modules\_hashlib\hashlib_mutex.h" />

0 commit comments

Comments
 (0)