Index: include/private/SkRecords.h |
diff --git a/include/private/SkRecords.h b/include/private/SkRecords.h |
index 1e274e9f46a2fc0275ed9f1510abedcc78c06295..d6ef12fe6c36491229f83253d921f8f914a52ffc 100644 |
--- a/include/private/SkRecords.h |
+++ b/include/private/SkRecords.h |
@@ -21,6 +21,14 @@ |
#include "SkString.h" |
#include "SkTextBlob.h" |
+// Windows.h, will pull in all of the GDI defines. GDI #defines |
+// DrawText to DrawTextA or DrawTextW, but SkRecord has a struct |
+// called DrawText. Since this file does not use GDI, undefing |
+// DrawText makes things less confusing. |
+#ifdef DrawText |
+#undef DrawText |
+#endif |
+ |
namespace SkRecords { |
// A list of all the types of canvas calls we can record. |