aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPostConfig.h8
-rw-r--r--include/core/SkPreConfig.h10
2 files changed, 8 insertions, 10 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)
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index d8dd65b910..94d48b6dd5 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -52,14 +52,6 @@
//////////////////////////////////////////////////////////////////////
-#if !defined(SK_DEBUG) && !defined(SK_RELEASE)
- #ifdef NDEBUG
- #define SK_RELEASE
- #else
- #define SK_DEBUG
- #endif
-#endif
-
#ifdef SK_BUILD_FOR_WIN32
#if !defined(SK_RESTRICT)
#define SK_RESTRICT __restrict
@@ -69,8 +61,6 @@
#endif
#endif
-//////////////////////////////////////////////////////////////////////
-
#if !defined(SK_RESTRICT)
#define SK_RESTRICT __restrict__
#endif