summaryrefslogtreecommitdiff
path: root/profiles/osapi
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-15 07:56:02 +0000
committermidipix <writeonce@midipix.org>2021-06-15 07:56:02 +0000
commit6213a0b2c646da640368a8b233fb0c93a994e3ea (patch)
tree33c9f1d49f9496393f49fd29b4eb853898d09abc /profiles/osapi
parentba7892173dfe8dce25aa5c7cc27e69b895c69067 (diff)
downloadsbpython2-6213a0b2c646da640368a8b233fb0c93a994e3ea.tar.bz2
sbpython2-6213a0b2c646da640368a8b233fb0c93a994e3ea.tar.xz
profiles/osapi/modern.h: properly handle HAVE_GCC_ASM_FOR_X87.
Diffstat (limited to 'profiles/osapi')
-rw-r--r--profiles/osapi/modern.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/profiles/osapi/modern.h b/profiles/osapi/modern.h
index 3075dd6..3cbea8c 100644
--- a/profiles/osapi/modern.h
+++ b/profiles/osapi/modern.h
@@ -97,7 +97,6 @@
#define HAVE_FTIME 1
#define HAVE_FTRUNCATE 1
#define HAVE_GAI_STRERROR 1
-#define HAVE_GCC_ASM_FOR_X87 1
#define HAVE_GETADDRINFO 1
#define HAVE_GETCWD 1
#define HAVE_GETC_UNLOCKED 1
@@ -280,6 +279,14 @@
#define _XOPEN_SOURCE 600
#endif
+#ifdef __i386__
+#define HAVE_GCC_ASM_FOR_X87 1
+#endif
+
+#ifdef __x86_64__
+#define HAVE_GCC_ASM_FOR_X87 1
+#endif
+
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
#define _FILE_OFFSET_BITS 64