summaryrefslogtreecommitdiff
path: root/tools/aapt2/compile/Png.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aapt2/compile/Png.cpp')
-rw-r--r--tools/aapt2/compile/Png.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/aapt2/compile/Png.cpp b/tools/aapt2/compile/Png.cpp
index f1bc53ee9cf7..7ab05b58b8b9 100644
--- a/tools/aapt2/compile/Png.cpp
+++ b/tools/aapt2/compile/Png.cpp
@@ -232,6 +232,13 @@ PNG_COLOR_TYPE_RGB_ALPHA) {
}
}*/
+#ifdef MAX
+#undef MAX
+#endif
+#ifdef ABS
+#undef ABS
+#endif
+
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define ABS(a) ((a) < 0 ? -(a) : (a))