Lines 53-62
Link Here
|
53 |
# define MacroIncludeFile <bsdi.cf> |
70 |
# define MacroIncludeFile <bsdi.cf> |
54 |
# define MacroFile bsdi.cf |
71 |
# define MacroFile bsdi.cf |
55 |
# undef bsdi |
72 |
# undef bsdi |
56 |
# define BSD386Architecture |
73 |
# define BSDOSArchitecture |
57 |
# define i386BsdArchitecture |
74 |
# if defined(__i386__) || defined(i386) |
58 |
# define i386Architecture |
75 |
# define i386BsdArchitecture |
59 |
# undef i386 |
76 |
# define i386Architecture |
|
|
77 |
# undef i386 |
78 |
# undef __i386__ |
79 |
# endif |
80 |
# if defined(__sparc__) || defined(__sparc_v9__) || defined(sparc) |
81 |
# define SparcArchitecture |
82 |
# undef sparc |
83 |
# undef __sparc__ |
84 |
# undef __sparc_v9__ |
85 |
# endif |
60 |
#endif /* bsdi */ |
86 |
#endif /* bsdi */ |
61 |
|
87 |
|
62 |
#ifdef __OpenBSD__ |
88 |
#ifdef __OpenBSD__ |
Lines 114-119
Link Here
|
114 |
# endif |
140 |
# endif |
115 |
# undef mc68000 |
141 |
# undef mc68000 |
116 |
# endif |
142 |
# endif |
|
|
143 |
# ifdef __powerpc__ |
144 |
# define PpcArchitecture |
145 |
# undef __powerpc__ |
146 |
# endif |
117 |
#endif /* OpenBSD */ |
147 |
#endif /* OpenBSD */ |
118 |
|
148 |
|
119 |
#ifdef __NetBSD__ |
149 |
#ifdef __NetBSD__ |
Lines 141-153
Link Here
|
141 |
# endif |
171 |
# endif |
142 |
# ifdef mc68000 |
172 |
# ifdef mc68000 |
143 |
# define Mc68020Architecture |
173 |
# define Mc68020Architecture |
144 |
# undef mc68000 |
|
|
145 |
# endif |
174 |
# endif |
146 |
# if defined(arm32) || defined(__arm32__) |
175 |
# ifdef __arm32__ |
147 |
# define Arm32Architecture |
176 |
# define Arm32Architecture |
148 |
# undef arm32 |
|
|
149 |
# undef __arm32__ |
177 |
# undef __arm32__ |
150 |
# endif |
178 |
# endif |
|
|
179 |
# ifdef __vax__ |
180 |
# define VaxArchitecture |
181 |
# undef __vax__ |
182 |
# endif |
183 |
# ifdef __powerpc__ |
184 |
# define PpcArchitecture |
185 |
# undef __powerpc__ |
186 |
# endif |
151 |
#endif /* NetBSD */ |
187 |
#endif /* NetBSD */ |
152 |
|
188 |
|
153 |
#ifdef __FreeBSD__ |
189 |
#ifdef __FreeBSD__ |
Lines 160-165
Link Here
|
160 |
# define i386Architecture |
196 |
# define i386Architecture |
161 |
# undef i386 |
197 |
# undef i386 |
162 |
# endif |
198 |
# endif |
|
|
199 |
# ifdef __alpha__ |
200 |
# define AlphaBsdArchitecture |
201 |
# define AlphaArchitecture |
202 |
# undef __alpha__ |
203 |
# endif |
163 |
#endif /* __FreeBSD__ */ |
204 |
#endif /* __FreeBSD__ */ |
164 |
|
205 |
|
165 |
#ifdef AMOEBA |
206 |
#ifdef AMOEBA |
Lines 325-330
Link Here
|
325 |
# undef sgi |
366 |
# undef sgi |
326 |
# define SGIArchitecture |
367 |
# define SGIArchitecture |
327 |
# undef mips |
368 |
# undef mips |
|
|
369 |
# undef __mips |
328 |
# define MipsArchitecture |
370 |
# define MipsArchitecture |
329 |
# ifdef _SVR4 |
371 |
# ifdef _SVR4 |
330 |
# undef _SVR4 |
372 |
# undef _SVR4 |
Lines 553-596
Link Here
|
553 |
# undef linux |
595 |
# undef linux |
554 |
# define LinuxArchitecture |
596 |
# define LinuxArchitecture |
555 |
# ifdef i386 |
597 |
# ifdef i386 |
556 |
# define i386Architecture |
598 |
# ifndef i386Architecture |
|
|
599 |
# define i386Architecture |
600 |
# endif |
557 |
# undef i386 |
601 |
# undef i386 |
558 |
# endif /* i386 */ |
602 |
XCOMM Keep cpp from replacing path elements containing i486/i586/i686 |
|
|
603 |
# ifdef i486 |
604 |
# ifndef i386Architecture |
605 |
# define i386Architecture |
606 |
# endif |
607 |
# undef i486 |
608 |
# endif |
609 |
# ifdef i586 |
610 |
# ifndef i386Architecture |
611 |
# define i386Architecture |
612 |
# endif |
613 |
# undef i586 |
614 |
# endif |
615 |
# ifdef i686 |
616 |
# ifndef i386Architecture |
617 |
# define i386Architecture |
618 |
# endif |
619 |
# undef i686 |
620 |
# endif |
621 |
# ifdef k6 |
622 |
# ifndef i386Architecture |
623 |
# define i386Architecture |
624 |
# endif |
625 |
# undef k6 |
626 |
# endif |
627 |
# endif /* k6 */ |
559 |
# ifdef __i386__ |
628 |
# ifdef __i386__ |
560 |
# ifndef i386Architecture |
629 |
# ifndef i386Architecture |
561 |
# define i386Architecture |
630 |
# define i386Architecture |
562 |
# endif |
631 |
# endif |
563 |
# undef __i386__ |
632 |
# undef __i386__ |
564 |
# endif /* __i386__ */ |
633 |
# endif /* __i386__ */ |
|
|
634 |
# ifdef __i486__ |
635 |
# ifndef i386Architecture |
636 |
# define i386Architecture |
637 |
# endif |
638 |
# undef __i486__ |
639 |
# endif /* __i486__ */ |
640 |
# ifdef __i586__ |
641 |
# ifndef i386Architecture |
642 |
# define i386Architecture |
643 |
# endif |
644 |
# undef __i586__ |
645 |
# endif /* __i586__ */ |
646 |
# ifdef __i686__ |
647 |
# ifndef i386Architecture |
648 |
# define i386Architecture |
649 |
# endif |
650 |
# undef __i686__ |
651 |
# endif /* __i686__ */ |
652 |
# ifdef __k6__ |
653 |
# ifndef i386Architecture |
654 |
# define i386Architecture |
655 |
# endif |
656 |
# undef __k6__ |
657 |
# endif /* __k6__ */ |
658 |
# ifdef __i386 |
659 |
# ifndef i386Architecture |
660 |
# define i386Architecture |
661 |
# endif |
662 |
# undef __i386 |
663 |
# endif /* __i386 */ |
664 |
# ifdef __i486 |
665 |
# ifndef i386Architecture |
666 |
# define i386Architecture |
667 |
# endif |
668 |
# undef __i486 |
669 |
# endif /* __i486 */ |
670 |
# ifdef __i586 |
671 |
# ifndef i386Architecture |
672 |
# define i386Architecture |
673 |
# endif |
674 |
# undef __i586 |
675 |
# endif /* __i586 */ |
676 |
# ifdef __i686 |
677 |
# ifndef i386Architecture |
678 |
# define i386Architecture |
679 |
# endif |
680 |
# undef __i686 |
681 |
# endif /* __i686 */ |
682 |
# ifdef __k6 |
683 |
# ifndef i386Architecture |
684 |
# define i386Architecture |
685 |
# endif |
686 |
# undef __k6 |
687 |
# endif /* __k6 */ |
688 |
# ifdef __s390__ |
689 |
# define s390Architecture |
690 |
# undef __s390__ |
691 |
# endif /* s390 */ |
565 |
# ifdef __alpha |
692 |
# ifdef __alpha |
566 |
# define AlphaArchitecture |
693 |
# define AlphaArchitecture |
567 |
# undef __alpha |
694 |
# undef __alpha |
568 |
# endif /* __alpha */ |
695 |
# endif /* __alpha */ |
569 |
# ifdef __alpha__ |
696 |
# ifdef __alpha__ |
570 |
# define AlphaArchitecture |
697 |
# ifndef AlphaArchitecture |
|
|
698 |
# define AlphaArchitecture |
699 |
# endif |
571 |
# undef __alpha__ |
700 |
# undef __alpha__ |
572 |
# endif /* __alpha__ */ |
701 |
# endif /* __alpha__ */ |
|
|
702 |
# ifdef __arm__ |
703 |
# define Arm32Architecture |
704 |
# undef arm |
705 |
# undef __arm |
706 |
# undef __arm__ |
707 |
# endif |
573 |
# ifdef mc68000 |
708 |
# ifdef mc68000 |
574 |
# define Mc68020Architecture |
709 |
# define Mc68020Architecture |
575 |
# undef mc68000 |
710 |
# undef mc68000 |
576 |
# endif /* mc68000 */ |
711 |
# endif /* mc68000 */ |
577 |
# ifdef powerpc |
712 |
# ifdef powerpc |
578 |
# define PowerPCArchitecture |
713 |
# define PpcArchitecture |
579 |
# undef powerpc |
714 |
# undef powerpc |
580 |
# endif |
715 |
# endif |
581 |
# if defined(arm) || defined(__arm__) |
716 |
# ifdef __powerpc__ |
582 |
# define ArmArchitecture |
717 |
# ifndef PpcArchitecture |
583 |
# undef arm |
718 |
# define PpcArchitecture |
584 |
# undef __arm__ |
719 |
# endif |
585 |
# if defined(__ARM_ARCH_4__) |
720 |
# undef __powerpc__ |
586 |
# define Arm4Architecture |
721 |
# endif |
587 |
# define Arm32Architecture |
722 |
# ifdef sparc |
588 |
# undef __ARM_ARCH_4__ |
723 |
# define SparcArchitecture |
589 |
# endif |
724 |
# undef sparc |
590 |
# if defined(__ARM_ARCH_3__) |
725 |
# endif |
591 |
# define Arm3Architecture |
726 |
# ifdef __sparc__ |
592 |
# undef __ARM_ARCH_3__ |
727 |
# ifndef SparcArchitecture |
593 |
# endif |
728 |
# define SparcArchitecture |
|
|
729 |
# endif |
730 |
# undef __sparc__ |
731 |
# endif |
732 |
# ifdef ia64 |
733 |
# define ia64Architecture |
734 |
# undef ia64 |
735 |
# endif |
736 |
# ifdef __ia64__ |
737 |
# ifndef ia64Architecture |
738 |
# define ia64Architecture |
739 |
# endif |
740 |
# undef __ia64__ |
741 |
# endif |
742 |
# if defined(mips) || defined(__mips__) |
743 |
# define MipsArchitecture |
744 |
# undef mips |
745 |
# undef __mips__ |
746 |
# endif |
747 |
XCOMM for compatibility with 3.3.x |
748 |
# ifdef PpcArchitecture |
749 |
# define PowerPCArchitecture |
594 |
# endif |
750 |
# endif |
595 |
#endif /* linux */ |
751 |
#endif /* linux */ |
596 |
|
752 |
|
Lines 608-614
Link Here
|
608 |
# undef __x86__ |
764 |
# undef __x86__ |
609 |
# endif |
765 |
# endif |
610 |
# ifdef __powerpc__ |
766 |
# ifdef __powerpc__ |
611 |
# define ppcArchitecture |
767 |
# define PpcArchitecture |
612 |
# undef __powerpc__ |
768 |
# undef __powerpc__ |
613 |
# endif |
769 |
# endif |
614 |
# if defined(sparc) || defined(__sparc__) |
770 |
# if defined(sparc) || defined(__sparc__) |
Lines 616-621
Link Here
|
616 |
# undef sparc |
772 |
# undef sparc |
617 |
# undef __sparc__ |
773 |
# undef __sparc__ |
618 |
# endif |
774 |
# endif |
|
|
775 |
/* for compatibility with 3.3.x */ |
776 |
# ifdef PpcArchitecture |
777 |
# define PowerPCArchitecture |
778 |
# endif |
619 |
#endif /* LynxOS AT/PPC/microSPARC */ |
779 |
#endif /* LynxOS AT/PPC/microSPARC */ |
620 |
|
780 |
|
621 |
#ifdef __uxp__ |
781 |
#ifdef __uxp__ |
Lines 687-692
Link Here
|
687 |
#undef i386 |
847 |
#undef i386 |
688 |
#endif /* MACH */ |
848 |
#endif /* MACH */ |
689 |
|
849 |
|
|
|
850 |
/* On NetBSD, `unix' is not defined, and cpp emits a warning every time |
851 |
* it sees a test using the `unix' symbol */ |
852 |
#if !defined(NetBSDArchitecture) || (defined(NetBSDArchitecture) && DefaultOSMajorVersion == 1 && DefaultOSMinorVersion <= 3) |
853 |
#ifdef unix |
854 |
#undef unix |
855 |
#endif |
856 |
#endif |
857 |
|
690 |
#ifdef emxos2 |
858 |
#ifdef emxos2 |
691 |
#define MacroIncludeFile <os2.cf> |
859 |
#define MacroIncludeFile <os2.cf> |
692 |
#define MacroFile os2.cf |
860 |
#define MacroFile os2.cf |
Lines 721-726
Link Here
|
721 |
#endif |
889 |
#endif |
722 |
#endif /* QNX/Neutrino */ |
890 |
#endif /* QNX/Neutrino */ |
723 |
|
891 |
|
|
|
892 |
#ifdef SparcArchitecture |
893 |
# if defined(__sparc_v9) || defined(__arch64__) |
894 |
# define Sparc64Architecture |
895 |
# endif |
896 |
#endif |
897 |
|
724 |
#ifndef MacroIncludeFile |
898 |
#ifndef MacroIncludeFile |
725 |
XCOMM WARNING: Imake.cf not configured; guessing at definitions!!! |
899 |
XCOMM WARNING: Imake.cf not configured; guessing at definitions!!! |
726 |
XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake. |
900 |
XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake. |