summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2016-10-05 11:37:18 -0500
committerElliott Hughes2016-10-05 11:37:44 -0500
commit34a4f0b8c75e2c5a347e04454423cf55c5406075 (patch)
tree9c4e7f6807ec36d74d010c2114ce916e9fe40323 /libutils
parent093951a2307f6572f911883c1ae6d01996e872c2 (diff)
downloadplatform-system-core-34a4f0b8c75e2c5a347e04454423cf55c5406075.tar.gz
platform-system-core-34a4f0b8c75e2c5a347e04454423cf55c5406075.tar.xz
platform-system-core-34a4f0b8c75e2c5a347e04454423cf55c5406075.zip
Test for _WIN32 in instead of USE_MINGW.
Bug: http://b/23392815 Test: builds Change-Id: I7fce8de1f0e2314170cce456cd49346dcee9d134
Diffstat (limited to 'libutils')
-rw-r--r--libutils/Printer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutils/Printer.cpp b/libutils/Printer.cpp
index 1dc86323b..98cd2c66a 100644
--- a/libutils/Printer.cpp
+++ b/libutils/Printer.cpp
@@ -44,7 +44,7 @@ void Printer::printFormatLine(const char* format, ...) {
44 44
45 char* formattedString; 45 char* formattedString;
46 46
47#ifndef USE_MINGW 47#ifndef _WIN32
48 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error 48 if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
49 ALOGE("%s: Failed to format string", __FUNCTION__); 49 ALOGE("%s: Failed to format string", __FUNCTION__);
50 return; 50 return;
@@ -115,7 +115,7 @@ void FdPrinter::printLine(const char* string) {
115 return; 115 return;
116 } 116 }
117 117
118#ifndef USE_MINGW 118#ifndef _WIN32
119 dprintf(mFd, mFormatString, mPrefix, string); 119 dprintf(mFd, mFormatString, mPrefix, string);
120#endif 120#endif
121} 121}