Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(133)

Unified Diff: PC/pyconfig.h

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « PC/msvcrtmodule.c ('k') | PC/winreg.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/PC/pyconfig.h Thu Dec 27 23:52:36 2012 +0200
+++ b/PC/pyconfig.h Thu Dec 27 17:35:12 2012 -0500
@@ -30,6 +30,11 @@
*/
+//Debug Macros
+#define VALUE_TO_STRING(x) #x
+#define VALUE(x) VALUE_TO_STRING(x)
+#define VAR_NAME_VALUE(var) "Checking: " #var "=" VALUE(var)
+
#ifdef _WIN32_WCE
#define MS_WINCE
#endif
@@ -266,6 +271,10 @@
bug that requires structure imports. More recent versions of the
compiler don't exhibit this bug.
*/
+
+#pragma message(VAR_NAME_VALUE(__GNUC__))
+#pragma message(VAR_NAME_VALUE(__GNUC_MINOR__))
+
#if (__GNUC__==2) && (__GNUC_MINOR__<=91)
#warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
#endif
@@ -276,6 +285,20 @@
#define PY_LLONG_MIN LLONG_MIN
#define PY_LLONG_MAX LLONG_MAX
#define PY_ULLONG_MAX ULLONG_MAX
+
+#if (__GNUC__==4) && (__GNUC_MINOR__>=7)
+#pragma message("Using 4.7")
+
+/* Define if we can use x64 gcc inline assembler */
+#define HAVE_GCC_ASM_FOR_X64 1
+/* Define if we can use gcc inline assembler to get and set x87 control word*/
+#define HAVE_GCC_ASM_FOR_X87 1
+/* Define if your compiler provides __uint128_t */
+#define HAVE_GCC_UINT128_T 1
+#define HAVE_GETCWD 1
+
+#endif
+
#endif /* GNUC */
/* ------------------------------------------------------------------------*/
@@ -473,6 +496,7 @@
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef gid_t */
+#define gid_t int
/* Define if your struct tm has tm_zone. */
/* #undef HAVE_TM_ZONE */
@@ -523,6 +547,7 @@
/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef uid_t */
+#define uid_t int
/* Define if the closedir function returns void instead of int. */
/* #undef VOID_CLOSEDIR */
@@ -696,7 +721,7 @@
#endif
/* Define if you have the <sys/time.h> header file. */
-/* #define HAVE_SYS_TIME_H 1 */
+#define HAVE_SYS_TIME_H 1
/* Define if you have the <sys/times.h> header file. */
/* #define HAVE_SYS_TIMES_H 1 */
@@ -710,13 +735,13 @@
/* #define HAVE_SYS_UN_H 1 */
/* Define if you have the <sys/utime.h> header file. */
-/* #define HAVE_SYS_UTIME_H 1 */
+#define HAVE_SYS_UTIME_H 1
/* Define if you have the <sys/utsname.h> header file. */
/* #define HAVE_SYS_UTSNAME_H 1 */
/* Define if you have the <unistd.h> header file. */
-/* #define HAVE_UNISTD_H 1 */
+#define HAVE_UNISTD_H 1
/* Define if you have the <utime.h> header file. */
/* #define HAVE_UTIME_H 1 */
« no previous file with comments | « PC/msvcrtmodule.c ('k') | PC/winreg.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+