diff options
Diffstat (limited to 'include/core/SkPostConfig.h')
-rw-r--r-- | include/core/SkPostConfig.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index fa65ee6d47..b67c863887 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) |