Index: include/core/SkOnce.h |
diff --git a/include/core/SkOnce.h b/include/core/SkOnce.h |
index 87bb277800e7d1ba89d808781be7231a12dd4dd3..f025cc2abf8db5d282ac02e6d80f3a015faedc81 100644 |
--- a/include/core/SkOnce.h |
+++ b/include/core/SkOnce.h |
@@ -31,8 +31,8 @@ |
#include "SkThread.h" |
#include "SkTypes.h" |
-// This must be used in a global or function scope, not as a class member. |
-#define SK_DECLARE_STATIC_ONCE(name) static SkOnceFlag name |
+// This must be used in a global scope, not in fuction scope or as a class member. |
+#define SK_DECLARE_STATIC_ONCE(name) namespace {} static SkOnceFlag name |
class SkOnceFlag; |