mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 05:39:02 +08:00
f17f0bffde
* [libmagic] Update to version 5.45. * Update patches. * Update version database.
44 lines
1.1 KiB
Diff
44 lines
1.1 KiB
Diff
From 2fffeb273ea46c1e91536f3d660982de785c8d49 Mon Sep 17 00:00:00 2001
|
|
From: Long Nguyen <nguyen.long.908132@gmail.com>
|
|
Date: Sat, 8 May 2021 20:52:59 +0700
|
|
Subject: [PATCH 03/14] Fix WIN32 macro checks
|
|
|
|
---
|
|
src/file.h | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/file.h b/src/file.h
|
|
index 299ac0c..2c365a6 100644
|
|
--- a/src/file.h
|
|
+++ b/src/file.h
|
|
@@ -82,7 +82,7 @@
|
|
#include <tre/regex.h>
|
|
#include <time.h>
|
|
#include <sys/types.h>
|
|
-#ifndef WIN32
|
|
+#ifndef _WIN32
|
|
#include <sys/param.h>
|
|
#endif
|
|
/* Do this here and now, because struct stat gets re-defined on solaris */
|
|
@@ -95,7 +95,7 @@
|
|
#define MAGIC "/etc/magic"
|
|
#endif
|
|
|
|
-#if defined(__EMX__) || defined (WIN32)
|
|
+#if defined(__EMX__) || defined (_WIN32)
|
|
#define PATHSEP ';'
|
|
#else
|
|
#define PATHSEP ':'
|
|
@@ -103,7 +103,7 @@
|
|
|
|
#define file_private static
|
|
|
|
-#if HAVE_VISIBILITY && !defined(WIN32)
|
|
+#if HAVE_VISIBILITY && !defined(_WIN32)
|
|
#define file_public __attribute__ ((__visibility__("default")))
|
|
#ifndef file_protected
|
|
#define file_protected __attribute__ ((__visibility__("hidden")))
|
|
--
|
|
2.29.2.windows.2
|
|
|