utils: Fix broken sdk build on windows

Bug: 11324229
Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
diff --git a/libutils/Printer.cpp b/libutils/Printer.cpp
index b062ef0..ac729e0 100644
--- a/libutils/Printer.cpp
+++ b/libutils/Printer.cpp
@@ -47,10 +47,16 @@
     va_start(arglist, format);
 
     char* formattedString;
+
+#ifndef USE_MINGW
     if (vasprintf(&formattedString, format, arglist) < 0) { // returns -1 on error
         ALOGE("%s: Failed to format string", __FUNCTION__);
         return;
     }
+#else
+    return;
+#endif
+
     va_end(arglist);
 
     printLine(formattedString);
@@ -113,7 +119,9 @@
         return;
     }
 
+#ifndef USE_MINGW
     fdprintf(mFd, mFormatString, mPrefix, string);
+#endif
 }
 
 /*
diff --git a/libutils/ProcessCallStack.cpp b/libutils/ProcessCallStack.cpp
index e202b9c..f9340c5 100644
--- a/libutils/ProcessCallStack.cpp
+++ b/libutils/ProcessCallStack.cpp
@@ -140,6 +140,7 @@
     clear();
 
     // Get current time.
+#ifndef USE_MINGW
     {
         time_t t = time(NULL);
         struct tm tm;
@@ -193,6 +194,7 @@
         ALOGE("%s: Failed to readdir from %s (errno = %d, '%s')",
               __FUNCTION__, PATH_SELF_TASK, -code, strerror(code));
     }
+#endif
 
     closedir(dp);
 }