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

Delta Between Two Patch Sets: PC/pyconfig.h

Issue 3871: cross and native build of python for mingw32 with distutils
Left Patch Set: Created 9 years, 5 months ago
Right Patch Set: Created 7 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « PC/msvcrtmodule.c ('k') | PC/winreg.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #ifndef Py_CONFIG_H 1 #ifndef Py_CONFIG_H
2 #define Py_CONFIG_H 2 #define Py_CONFIG_H
3 3
4 /* pyconfig.h. NOT Generated automatically by configure. 4 /* pyconfig.h. NOT Generated automatically by configure.
5 5
6 This is a manually maintained version used for the Watcom, 6 This is a manually maintained version used for the Watcom,
7 Borland and Microsoft Visual C++ compilers. It is a 7 Borland and Microsoft Visual C++ compilers. It is a
8 standard part of the Python distribution. 8 standard part of the Python distribution.
9 9
10 WINDOWS DEFINES: 10 WINDOWS DEFINES:
(...skipping 11 matching lines...) Expand all
22 compiler specific". Therefore, these should be very rare. 22 compiler specific". Therefore, these should be very rare.
23 23
24 24
25 NOTE: The following symbols are deprecated: 25 NOTE: The following symbols are deprecated:
26 NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT 26 NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
27 MS_CORE_DLL. 27 MS_CORE_DLL.
28 28
29 WIN32 is still required for the locale module. 29 WIN32 is still required for the locale module.
30 30
31 */ 31 */
32
33 //Debug Macros
34 #define VALUE_TO_STRING(x) #x
35 #define VALUE(x) VALUE_TO_STRING(x)
36 #define VAR_NAME_VALUE(var) "Checking: " #var "=" VALUE(var)
32 37
33 #ifdef _WIN32_WCE 38 #ifdef _WIN32_WCE
34 #define MS_WINCE 39 #define MS_WINCE
35 #endif 40 #endif
36 41
37 /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */ 42 /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
38 #ifdef USE_DL_EXPORT 43 #ifdef USE_DL_EXPORT
39 # define Py_BUILD_CORE 44 # define Py_BUILD_CORE
40 #endif /* USE_DL_EXPORT */ 45 #endif /* USE_DL_EXPORT */
41 46
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 264
260 /* ------------------------------------------------------------------------*/ 265 /* ------------------------------------------------------------------------*/
261 /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */ 266 /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
262 #if defined(__GNUC__) && defined(_WIN32) 267 #if defined(__GNUC__) && defined(_WIN32)
263 /* XXX These defines are likely incomplete, but should be easy to fix. 268 /* XXX These defines are likely incomplete, but should be easy to fix.
264 They should be complete enough to build extension modules. */ 269 They should be complete enough to build extension modules. */
265 /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.* 270 /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
266 bug that requires structure imports. More recent versions of the 271 bug that requires structure imports. More recent versions of the
267 compiler don't exhibit this bug. 272 compiler don't exhibit this bug.
268 */ 273 */
274
275 #pragma message(VAR_NAME_VALUE(__GNUC__))
276 #pragma message(VAR_NAME_VALUE(__GNUC_MINOR__))
277
269 #if (__GNUC__==2) && (__GNUC_MINOR__<=91) 278 #if (__GNUC__==2) && (__GNUC_MINOR__<=91)
270 #warning "Please use an up-to-date version of gcc! (>2.91 recommended)" 279 #warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
271 #endif 280 #endif
272 281
273 #define COMPILER "[gcc]" 282 #define COMPILER "[gcc]"
274 #define hypot _hypot 283 #define hypot _hypot
275 #define PY_LONG_LONG long long 284 #define PY_LONG_LONG long long
276 #define PY_LLONG_MIN LLONG_MIN 285 #define PY_LLONG_MIN LLONG_MIN
277 #define PY_LLONG_MAX LLONG_MAX 286 #define PY_LLONG_MAX LLONG_MAX
278 #define PY_ULLONG_MAX ULLONG_MAX 287 #define PY_ULLONG_MAX ULLONG_MAX
288
289 #if (__GNUC__==4) && (__GNUC_MINOR__>=7)
290 #pragma message("Using 4.7")
291
292 /* Define if we can use x64 gcc inline assembler */
293 #define HAVE_GCC_ASM_FOR_X64 1
294 /* Define if we can use gcc inline assembler to get and set x87 control word*/
295 #define HAVE_GCC_ASM_FOR_X87 1
296 /* Define if your compiler provides __uint128_t */
297 #define HAVE_GCC_UINT128_T 1
298 #define HAVE_GETCWD 1
299
300 #endif
301
279 #endif /* GNUC */ 302 #endif /* GNUC */
280 303
281 /* ------------------------------------------------------------------------*/ 304 /* ------------------------------------------------------------------------*/
282 /* lcc-win32 defines __LCC__ */ 305 /* lcc-win32 defines __LCC__ */
283 #if defined(__LCC__) 306 #if defined(__LCC__)
284 /* XXX These defines are likely incomplete, but should be easy to fix. 307 /* XXX These defines are likely incomplete, but should be easy to fix.
285 They should be complete enough to build extension modules. */ 308 They should be complete enough to build extension modules. */
286 309
287 #define COMPILER "[lcc-win32]" 310 #define COMPILER "[lcc-win32]"
288 typedef int pid_t; 311 typedef int pid_t;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 489
467 /* Define if you have dirent.h. */ 490 /* Define if you have dirent.h. */
468 /* #define DIRENT 1 */ 491 /* #define DIRENT 1 */
469 492
470 /* Define to the type of elements in the array set by `getgroups'. 493 /* Define to the type of elements in the array set by `getgroups'.
471 Usually this is either `int' or `gid_t'. */ 494 Usually this is either `int' or `gid_t'. */
472 /* #undef GETGROUPS_T */ 495 /* #undef GETGROUPS_T */
473 496
474 /* Define to `int' if <sys/types.h> doesn't define. */ 497 /* Define to `int' if <sys/types.h> doesn't define. */
475 /* #undef gid_t */ 498 /* #undef gid_t */
499 #define gid_t int
476 500
477 /* Define if your struct tm has tm_zone. */ 501 /* Define if your struct tm has tm_zone. */
478 /* #undef HAVE_TM_ZONE */ 502 /* #undef HAVE_TM_ZONE */
479 503
480 /* Define if you don't have tm_zone but do have the external array 504 /* Define if you don't have tm_zone but do have the external array
481 tzname. */ 505 tzname. */
482 #define HAVE_TZNAME 506 #define HAVE_TZNAME
483 507
484 /* Define to `int' if <sys/types.h> doesn't define. */ 508 /* Define to `int' if <sys/types.h> doesn't define. */
485 /* #undef mode_t */ 509 /* #undef mode_t */
(...skipping 30 matching lines...) Expand all
516 /* #undef SYSNDIR */ 540 /* #undef SYSNDIR */
517 541
518 /* Define if you can safely include both <sys/time.h> and <time.h>. */ 542 /* Define if you can safely include both <sys/time.h> and <time.h>. */
519 /* #undef TIME_WITH_SYS_TIME */ 543 /* #undef TIME_WITH_SYS_TIME */
520 544
521 /* Define if your <sys/time.h> declares struct tm. */ 545 /* Define if your <sys/time.h> declares struct tm. */
522 /* #define TM_IN_SYS_TIME 1 */ 546 /* #define TM_IN_SYS_TIME 1 */
523 547
524 /* Define to `int' if <sys/types.h> doesn't define. */ 548 /* Define to `int' if <sys/types.h> doesn't define. */
525 /* #undef uid_t */ 549 /* #undef uid_t */
550 #define uid_t int
526 551
527 /* Define if the closedir function returns void instead of int. */ 552 /* Define if the closedir function returns void instead of int. */
528 /* #undef VOID_CLOSEDIR */ 553 /* #undef VOID_CLOSEDIR */
529 554
530 /* Define if getpgrp() must be called as getpgrp(0) 555 /* Define if getpgrp() must be called as getpgrp(0)
531 and (consequently) setpgrp() as setpgrp(0, 0). */ 556 and (consequently) setpgrp() as setpgrp(0, 0). */
532 /* #undef GETPGRP_HAVE_ARGS */ 557 /* #undef GETPGRP_HAVE_ARGS */
533 558
534 /* Define this if your time.h defines altzone */ 559 /* Define this if your time.h defines altzone */
535 /* #define HAVE_ALTZONE */ 560 /* #define HAVE_ALTZONE */
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 714
690 /* Define if you have the <sys/select.h> header file. */ 715 /* Define if you have the <sys/select.h> header file. */
691 /* #define HAVE_SYS_SELECT_H 1 */ 716 /* #define HAVE_SYS_SELECT_H 1 */
692 717
693 /* Define to 1 if you have the <sys/stat.h> header file. */ 718 /* Define to 1 if you have the <sys/stat.h> header file. */
694 #ifndef MS_WINCE 719 #ifndef MS_WINCE
695 #define HAVE_SYS_STAT_H 1 720 #define HAVE_SYS_STAT_H 1
696 #endif 721 #endif
697 722
698 /* Define if you have the <sys/time.h> header file. */ 723 /* Define if you have the <sys/time.h> header file. */
699 /* #define HAVE_SYS_TIME_H 1 */ 724 #define HAVE_SYS_TIME_H 1
700 725
701 /* Define if you have the <sys/times.h> header file. */ 726 /* Define if you have the <sys/times.h> header file. */
702 /* #define HAVE_SYS_TIMES_H 1 */ 727 /* #define HAVE_SYS_TIMES_H 1 */
703 728
704 /* Define to 1 if you have the <sys/types.h> header file. */ 729 /* Define to 1 if you have the <sys/types.h> header file. */
705 #ifndef MS_WINCE 730 #ifndef MS_WINCE
706 #define HAVE_SYS_TYPES_H 1 731 #define HAVE_SYS_TYPES_H 1
707 #endif 732 #endif
708 733
709 /* Define if you have the <sys/un.h> header file. */ 734 /* Define if you have the <sys/un.h> header file. */
710 /* #define HAVE_SYS_UN_H 1 */ 735 /* #define HAVE_SYS_UN_H 1 */
711 736
712 /* Define if you have the <sys/utime.h> header file. */ 737 /* Define if you have the <sys/utime.h> header file. */
713 /* #define HAVE_SYS_UTIME_H 1 */ 738 #define HAVE_SYS_UTIME_H 1
714 739
715 /* Define if you have the <sys/utsname.h> header file. */ 740 /* Define if you have the <sys/utsname.h> header file. */
716 /* #define HAVE_SYS_UTSNAME_H 1 */ 741 /* #define HAVE_SYS_UTSNAME_H 1 */
717 742
718 /* Define if you have the <unistd.h> header file. */ 743 /* Define if you have the <unistd.h> header file. */
719 /* #define HAVE_UNISTD_H 1 */ 744 #define HAVE_UNISTD_H 1
720 745
721 /* Define if you have the <utime.h> header file. */ 746 /* Define if you have the <utime.h> header file. */
722 /* #define HAVE_UTIME_H 1 */ 747 /* #define HAVE_UTIME_H 1 */
723 748
724 /* Define if the compiler provides a wchar.h header file. */ 749 /* Define if the compiler provides a wchar.h header file. */
725 #define HAVE_WCHAR_H 1 750 #define HAVE_WCHAR_H 1
726 751
727 /* The size of `wchar_t', as computed by sizeof. */ 752 /* The size of `wchar_t', as computed by sizeof. */
728 #define SIZEOF_WCHAR_T 2 753 #define SIZEOF_WCHAR_T 2
729 754
(...skipping 26 matching lines...) Expand all
756 781
757 /* WinSock does not use a bitmask in select, and uses 782 /* WinSock does not use a bitmask in select, and uses
758 socket handles greater than FD_SETSIZE */ 783 socket handles greater than FD_SETSIZE */
759 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE 784 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
760 785
761 /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the 786 /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the
762 least significant byte first */ 787 least significant byte first */
763 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 788 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
764 789
765 #endif /* !Py_CONFIG_H */ 790 #endif /* !Py_CONFIG_H */
LEFTRIGHT

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