[Python-checkins] cpython: more linux -> __linux__
benjamin.peterson
python-checkins at python.org
Wed Sep 7 17:48:43 EDT 2016
https://hg.python.org/cpython/rev/33c398a9a6fb
changeset: 103251:33c398a9a6fb
user: Benjamin Peterson <benjamin at python.org>
date: Wed Sep 07 14:45:10 2016 -0700
summary:
more linux -> __linux__
files:
Modules/_ctypes/libffi/src/dlmalloc.c | 2 +-
Modules/ossaudiodev.c | 2 +-
Modules/posixmodule.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Modules/_ctypes/libffi/src/dlmalloc.c b/Modules/_ctypes/libffi/src/dlmalloc.c
--- a/Modules/_ctypes/libffi/src/dlmalloc.c
+++ b/Modules/_ctypes/libffi/src/dlmalloc.c
@@ -525,7 +525,7 @@
#define MMAP_CLEARS 1
#endif /* MMAP_CLEARS */
#ifndef HAVE_MREMAP
-#ifdef linux
+#ifdef __linux__
#define HAVE_MREMAP 1
#else /* linux */
#define HAVE_MREMAP 0
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -37,7 +37,7 @@
#include <sys/soundcard.h>
#endif
-#if defined(linux)
+#ifdef __linux__
#ifndef HAVE_STDINT_H
typedef unsigned long uint32_t;
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8446,7 +8446,7 @@
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "iiOn:sendfile",
keywords, &out, &in, &offobj, &count))
return NULL;
-#ifdef linux
+#ifdef __linux__
if (offobj == Py_None) {
do {
Py_BEGIN_ALLOW_THREADS
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list