Index: include/core/SkPostConfig.h |
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h |
index ec17b65353b57f623706c27cd4e6b38f88eb437b..2d6ab44b65f7183bfd7b2f9dee163231c80bed21 100644 |
--- a/include/core/SkPostConfig.h |
+++ b/include/core/SkPostConfig.h |
@@ -126,10 +126,10 @@ |
* Defaults to 1 in DEBUG and 0 in RELEASE. |
*/ |
#ifndef SK_ENABLE_INST_COUNT |
-# ifdef SK_DEBUG |
// Only enabled for static builds, because instance counting relies on static |
// variables in functions defined in header files. |
-# define SK_ENABLE_INST_COUNT !defined(SKIA_DLL) |
+# if defined(SK_DEBUG) && !defined(SKIA_DLL) |
+# define SK_ENABLE_INST_COUNT 1 |
# else |
# define SK_ENABLE_INST_COUNT 0 |
# endif |