Only define NO_RETURN if undefined
WebRTC's NO_RETURN definition conflicts with WebKit's. This can be avoided by only defining it if not already defined. BUG=webrtc:7054 Review-Url: https://codereview.webrtc.org/2657823004 Cr-Commit-Position: refs/heads/master@{#16353}
This commit is contained in:
parent
2e6048461e
commit
a26330ac6f
@ -98,6 +98,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NO_RETURN
|
||||
// Annotate a function that will not return control flow to the caller.
|
||||
#if defined(_MSC_VER)
|
||||
#define NO_RETURN __declspec(noreturn)
|
||||
@ -106,5 +107,6 @@
|
||||
#else
|
||||
#define NO_RETURN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // WEBRTC_TYPEDEFS_H_
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user