[pypy-commit] pypy default: Translation fix on Windows (for "inline" in signals.h)
arigo
pypy.commits at gmail.com
Sat May 26 08:24:32 EDT 2018
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r94688:e6a28f470244
Date: 2018-05-26 14:23 +0200
http://bitbucket.org/pypy/pypy/changeset/e6a28f470244/
Log: Translation fix on Windows (for "inline" in signals.h)
diff --git a/rpython/translator/c/src/precommondefs.h b/rpython/translator/c/src/precommondefs.h
--- a/rpython/translator/c/src/precommondefs.h
+++ b/rpython/translator/c/src/precommondefs.h
@@ -73,6 +73,9 @@
# define RPY_EXTERN extern _RPY_HIDDEN
#endif
+#ifdef _WIN32
+# define inline _inline
+#endif
#endif /* __PYPY_PRECOMMONDEFS_H */
diff --git a/rpython/translator/c/src/thread.h b/rpython/translator/c/src/thread.h
--- a/rpython/translator/c/src/thread.h
+++ b/rpython/translator/c/src/thread.h
@@ -14,7 +14,6 @@
#ifdef _WIN32
#define RPYTHREAD_NAME "nt"
#include "thread_nt.h"
-#define inline _inline
#else
/* We should check if unistd.h defines _POSIX_THREADS, but sometimes
More information about the pypy-commit
mailing list