aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_types.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-02-23 04:04:25 +0000
committerWarner Losh <imp@FreeBSD.org>2018-02-23 04:04:25 +0000
commitef1fcaf0f5bf501986c4c3d5c260c020eec57a92 (patch)
treefa32a7d74d83ec1dfe23d311369d9bfcc774f565 /sys/sys/_types.h
parent07c17b2b00d8c1c8a2d58d4d8f99e64ec1182476 (diff)
downloadsrc-ef1fcaf0f5bf501986c4c3d5c260c020eec57a92.tar.gz
src-ef1fcaf0f5bf501986c4c3d5c260c020eec57a92.zip
Do not include float interfaces when using libsa.
We don't support float in the boot loaders, so don't include interfaces for float or double in systems headers. In addition, take the unusual step of spiking double and float to prevent any more accidental seepage.
Notes
Notes: svn path=/head/; revision=329859
Diffstat (limited to 'sys/sys/_types.h')
-rw-r--r--sys/sys/_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h
index 8ecf9d059239..22a37c53389a 100644
--- a/sys/sys/_types.h
+++ b/sys/sys/_types.h
@@ -104,7 +104,9 @@ typedef __uint_least32_t __char32_t;
typedef struct {
long long __max_align1 __aligned(_Alignof(long long));
+#ifndef _STANDALONE
long double __max_align2 __aligned(_Alignof(long double));
+#endif
} __max_align_t;
typedef __uint64_t __dev_t; /* device number */