projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3280a5d
)
Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperly
author
Eric Fiselier
<eric@efcs.ca>
Sat, 6 Dec 2014 20:09:11 +0000
(20:09 +0000)
committer
Eric Fiselier
<eric@efcs.ca>
Sat, 6 Dec 2014 20:09:11 +0000
(20:09 +0000)
llvm-svn: 223590
libcxx/include/__config
patch
|
blob
|
history
diff --git
a/libcxx/include/__config
b/libcxx/include/__config
index
df0bb77
..
8fd80bc
100644
(file)
--- a/
libcxx/include/__config
+++ b/
libcxx/include/__config
@@
-713,4
+713,9
@@
extern "C" void __sanitizer_annotate_contiguous_container(
# define _LIBCPP_WEAK __attribute__((__weak__))
#endif
+#if defined(_LIBCPP_HAS_NO_MONOTONIC_CLOCK) && !defined(_LIBCPP_HAS_NO_THREADS)
+# error _LIBCPP_HAS_NO_MONOTONIC_CLOCK may only be defined when \
+ _LIBCPP_HAS_NO_THREADS is defined.
+#endif
+
#endif // _LIBCPP_CONFIG