blob: 5cbf2b96606a841e2316478bf70421bf4119a737 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
--- include/__config.orig 2014-04-14 15:44:57 UTC
+++ include/__config
@@ -42,7 +42,7 @@
#endif // __BIG_ENDIAN__
#endif // __BIG_ENDIAN__
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/endian.h>
# if _BYTE_ORDER == _LITTLE_ENDIAN
# define _LIBCPP_LITTLE_ENDIAN 1
@@ -314,7 +314,10 @@ typedef __char32_t char32_t;
#endif
#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
-#if defined(__FreeBSD__)
+#if defined(__DragonFly__)
+#define _LIBCPP_HAS_QUICK_EXIT
+#define _LIBCPP_HAS_C11_FEATURES
+#elif defined(__FreeBSD__) && _FreeBSD_version >= 901501
#define _LIBCPP_HAS_QUICK_EXIT
#define _LIBCPP_HAS_C11_FEATURES
#elif defined(__linux__)
@@ -601,6 +604,13 @@ template <unsigned> struct __static_asse
#define _LIBCPP_WCTYPE_IS_MASK
#endif
+#ifdef __DragonFly__
+#define _LIBCPP_LOCALE__L_EXTENSIONS 1
+#define _DECLARE_C99_LDBL_MATH 1
+#define _LIBCPP_HAS_DEFAULTRUNELOCALE
+#define _LIBCPP_WCTYPE_IS_MASK
+#endif
+
#ifndef _LIBCPP_TRIVIAL_PAIR_COPY_CTOR
# define _LIBCPP_TRIVIAL_PAIR_COPY_CTOR 1
#endif
|