mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Getting rid of code dependent on GUSI or the MetroWerks compiler.
This commit is contained in:
parent
bc2fbc74ed
commit
4bae2d5e46
7 changed files with 1 additions and 60 deletions
|
|
@ -34,7 +34,7 @@ This software comes with no warranty. Use at your own risk.
|
|||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) || defined(__MWERKS__)
|
||||
#if defined(__APPLE__)
|
||||
#include "macglue.h"
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
/* Mac with GUSI has more errors than those in errno.h */
|
||||
#ifdef USE_GUSI
|
||||
#include <sys/errno.h>
|
||||
#endif
|
||||
|
||||
/* Windows socket errors (WSA*) */
|
||||
#ifdef MS_WINDOWS
|
||||
#include <winsock.h>
|
||||
|
|
|
|||
|
|
@ -1739,11 +1739,6 @@ sock_makefile(PySocketSockObject *s, PyObject *args)
|
|||
SOCKETCLOSE(fd);
|
||||
return s->errorhandler();
|
||||
}
|
||||
#ifdef USE_GUSI2
|
||||
/* Workaround for bug in Metrowerks MSL vs. GUSI I/O library */
|
||||
if (strchr(mode, 'b') != NULL)
|
||||
bufsize = 0;
|
||||
#endif
|
||||
f = PyFile_FromFile(fp, "<socket>", mode, fclose);
|
||||
if (f != NULL)
|
||||
PyFile_SetBufSize(f, bufsize);
|
||||
|
|
|
|||
|
|
@ -41,15 +41,6 @@ static PyObject *StructError;
|
|||
|
||||
/* Define various structs to figure out the alignments of types */
|
||||
|
||||
#ifdef __MWERKS__
|
||||
/*
|
||||
** XXXX We have a problem here. There are no unique alignment rules
|
||||
** on the PowerPC mac.
|
||||
*/
|
||||
#ifdef __powerc
|
||||
#pragma options align=mac68k
|
||||
#endif
|
||||
#endif /* __MWERKS__ */
|
||||
|
||||
typedef struct { char c; short x; } st_short;
|
||||
typedef struct { char c; int x; } st_int;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue