diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-28 20:42:55 +0000 | 
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-28 20:42:55 +0000 | 
| commit | 67c7ce4bef3223af744d2b510d294000ce00388d (patch) | |
| tree | d94599db1db51bb5aa9f1daaaa338ef7199a4715 /Include/longobject.h | |
| parent | 1a9a9d543327397396827642895410183f8902d5 (diff) | |
| download | cpython-git-67c7ce4bef3223af744d2b510d294000ce00388d.tar.gz | |
Issue #4835: make PyLong_FromSocket_t() and PyLong_AsSocket_t() private
to the socket module, and fix the width of socket descriptors to be
correctly detected under 64-bit Windows.
Diffstat (limited to 'Include/longobject.h')
| -rw-r--r-- | Include/longobject.h | 9 | 
1 files changed, 0 insertions, 9 deletions
diff --git a/Include/longobject.h b/Include/longobject.h index a8dace6cc3..6adf2620d2 100644 --- a/Include/longobject.h +++ b/Include/longobject.h @@ -32,15 +32,6 @@ PyAPI_FUNC(PyObject *) PyLong_GetInfo(void);     cleanup to keep the extra information. [CH] */  #define PyLong_AS_LONG(op) PyLong_AsLong(op) -/* Used by socketmodule.c */ -#if SIZEOF_SOCKET_T <= SIZEOF_LONG -#define PyLong_FromSocket_t(fd) PyLong_FromLong((SOCKET_T)(fd)) -#define PyLong_AsSocket_t(fd) (SOCKET_T)PyLong_AsLong(fd) -#else -#define PyLong_FromSocket_t(fd) PyLong_FromLongLong(((SOCKET_T)(fd)); -#define PyLong_AsSocket_t(fd) (SOCKET_T)PyLong_AsLongLong(fd) -#endif -  /* Issue #1983: pid_t can be longer than a C long on some systems */  #if !defined(SIZEOF_PID_T) || SIZEOF_PID_T == SIZEOF_INT  #define _Py_PARSE_PID "i"  | 
