Index: include/core/SkPostConfig.h |
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h |
index fa65ee6d47015fa7750f29c58ee47e30f160f467..b67c863887825ed4caa4b052ff0e72bbaadf8a2c 100644 |
--- a/include/core/SkPostConfig.h |
+++ b/include/core/SkPostConfig.h |
@@ -14,6 +14,14 @@ |
# define SK_BUILD_FOR_WIN |
#endif |
+#if !defined(SK_DEBUG) && !defined(SK_RELEASE) |
+ #ifdef NDEBUG |
+ #define SK_RELEASE |
+ #else |
+ #define SK_DEBUG |
+ #endif |
+#endif |
+ |
#if defined(SK_DEBUG) && defined(SK_RELEASE) |
# error "cannot define both SK_DEBUG and SK_RELEASE" |
#elif !defined(SK_DEBUG) && !defined(SK_RELEASE) |