Skip to content

Commit

Permalink
More macro namespace qualification hygiene
Browse files Browse the repository at this point in the history
NFC
  • Loading branch information
jckarter committed Nov 30, 2015
1 parent 6f806b4 commit bac64f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/swift/Basic/Lazy.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ namespace swift {
#ifdef __APPLE__
using OnceToken_t = dispatch_once_t;
# define SWIFT_ONCE_F(TOKEN, FUNC, CONTEXT) \
dispatch_once_f(&TOKEN, CONTEXT, FUNC)
::dispatch_once_f(&TOKEN, CONTEXT, FUNC)
#else
using OnceToken_t = std::once_flag;
# define SWIFT_ONCE_F(TOKEN, FUNC, CONTEXT) \
std::call_once(TOKEN, FUNC, CONTEXT)
::std::call_once(TOKEN, FUNC, CONTEXT)
#endif

/// A template for lazily-constructed, zero-initialized, leaked-on-exit
Expand Down

0 comments on commit bac64f3

Please sign in to comment.