Browse Source

windows: Fix the msvc version check in stat.h.

master
Reece H. Dunn 8 years ago
parent
commit
3081fe7287
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/include/compat/sys/stat.h

+ 2
- 2
src/include/compat/sys/stat.h View File

/* Compatibility shim for <sys/stat.h> /* Compatibility shim for <sys/stat.h>
* *
* Copyright (C) 2016 Reece H. Dunn
* Copyright (C) 2016-2017 Reece H. Dunn
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by


#ifdef _MSC_VER #ifdef _MSC_VER


#if _MSC_VER >= 1600 // Visual C++ 10 (Visual Studio 2010) and above...
#if _MSC_VER >= 1900 // Visual C++ 14 (Visual Studio 2015) and above...
#include <../ucrt/sys/stat.h> #include <../ucrt/sys/stat.h>
#else #else
#include <../include/sys/stat.h> #include <../include/sys/stat.h>

Loading…
Cancel
Save