summaryrefslogtreecommitdiffstats
path: root/src/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/test.cc b/src/test.cc
index ed2b910..560ef3a 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -12,22 +12,25 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#ifdef _WIN32
+#include <direct.h> // Has to be before util.h is included.
+#endif
+
#include "test.h"
#include <algorithm>
#include <errno.h>
-
-#include "build_log.h"
-#include "manifest_parser.h"
-#include "util.h"
-
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
+#include "build_log.h"
+#include "manifest_parser.h"
+#include "util.h"
+
namespace {
#ifdef _WIN32