This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit a681702df45057c67c65919fa456e12b774ca111
Author: Andrew Stitcher <[email protected]>
AuthorDate: Thu Apr 7 12:15:33 2022 -0400

    PROTON-2458: [Python] Fix binding compile on windows with python 3.10
---
 c/include/proton/type_compat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/include/proton/type_compat.h b/c/include/proton/type_compat.h
index 62a19284..8d2e14ce 100644
--- a/c/include/proton/type_compat.h
+++ b/c/include/proton/type_compat.h
@@ -82,7 +82,7 @@ the ARM compiler. In that case ssize_t needs to be defined in 
this file. */
 /* all versions of Visual Studio */
 # ifndef PNI_DEFINE_SSIZE_T
 /* ssize_t def is needed, unless third party definition interferes, e.g. 
python/swig */
-#  ifndef Py_CONFIG_H
+#  if !defined(Py_CONFIG_H) || defined(Py_CONFIG_H) && !defined(HAVE_SSIZE_T)
 #   define PNI_DEFINE_SSIZE_T
 #  endif
 # endif


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to