From: Daniele Varrazzo Date: Tue, 29 Jun 2021 02:47:40 +0000 (+0100) Subject: Fix inclusion of sys/param.h on Windows compiler X-Git-Tag: 3.0.dev0~4^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2453369e786a4e5fa0aab15954772cb66da49d9d;p=thirdparty%2Fpsycopg.git Fix inclusion of sys/param.h on Windows compiler The header is probably available on Cygwin but not on MSVC. --- diff --git a/psycopg_c/psycopg_c/_psycopg/endian.pxd b/psycopg_c/psycopg_c/_psycopg/endian.pxd index 43220fdb1..ab848eedc 100644 --- a/psycopg_c/psycopg_c/_psycopg/endian.pxd +++ b/psycopg_c/psycopg_c/_psycopg/endian.pxd @@ -72,7 +72,9 @@ cdef extern from * nogil: #elif defined(__WINDOWS__) # include -# include +# ifndef _MSC_VER +# include +# endif # if BYTE_ORDER == LITTLE_ENDIAN