---
 mingw-w64-crt/Makefile.am                     |  1 +
 mingw-w64-crt/stdio/__mingw_fix_stat.h        | 13 +++++++++++++
 mingw-w64-crt/stdio/__mingw_fix_stat_path.c   |  2 +-
 mingw-w64-crt/stdio/__mingw_fix_wstat_path.c  |  2 +-
 mingw-w64-crt/stdio/msvcr110plus_stat32.c     |  3 +--
 mingw-w64-crt/stdio/msvcr110plus_stat64i32.c  |  3 +--
 mingw-w64-crt/stdio/msvcr110plus_wstat32.c    |  3 +--
 mingw-w64-crt/stdio/msvcr110plus_wstat64i32.c |  3 +--
 mingw-w64-crt/stdio/msvcr110pre_stat32.c      |  3 +--
 mingw-w64-crt/stdio/msvcr110pre_stat64i32.c   |  3 +--
 mingw-w64-crt/stdio/msvcr110pre_wstat32.c     |  3 +--
 mingw-w64-crt/stdio/msvcr110pre_wstat64i32.c  |  3 +--
 mingw-w64-crt/stdio/stat32i64.c               |  3 +--
 mingw-w64-crt/stdio/stat64.c                  |  3 +--
 mingw-w64-crt/stdio/wstat32i64.c              |  3 +--
 mingw-w64-crt/stdio/wstat64.c                 |  3 +--
 16 files changed, 28 insertions(+), 26 deletions(-)
 create mode 100644 mingw-w64-crt/stdio/__mingw_fix_stat.h

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index e5ca242db..c8812f2d5 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -1103,6 +1103,7 @@ src_libmingwex=\
   stdio/asprintf.c \
   stdio/fopen64.c          stdio/fseeko32.c          stdio/fseeko64.c          
                         stdio/ftello.c          \
   stdio/ftello64.c         stdio/ftruncate64.c       stdio/lltoa.c            
stdio/lltow.c             stdio/lseek64.c         \
+  stdio/__mingw_fix_stat.h \
   stdio/__mingw_fix_stat_path.c stdio/__mingw_fix_wstat_path.c \
   \
   stdio/mingw_pformat.h    mingw_sformat.h           mingw_swformat.h \
diff --git a/mingw-w64-crt/stdio/__mingw_fix_stat.h 
b/mingw-w64-crt/stdio/__mingw_fix_stat.h
new file mode 100644
index 000000000..5aad9efb6
--- /dev/null
+++ b/mingw-w64-crt/stdio/__mingw_fix_stat.h
@@ -0,0 +1,13 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#ifndef __MINGW_FIX_STAT_H
+#define __MINGW_FIX_STAT_H
+
+char* __mingw_fix_stat_path (const char* _path);
+wchar_t* __mingw_fix_wstat_path (const wchar_t* _path);
+
+#endif
diff --git a/mingw-w64-crt/stdio/__mingw_fix_stat_path.c 
b/mingw-w64-crt/stdio/__mingw_fix_stat_path.c
index 564658473..ae9550ebb 100644
--- a/mingw-w64-crt/stdio/__mingw_fix_stat_path.c
+++ b/mingw-w64-crt/stdio/__mingw_fix_stat_path.c
@@ -6,6 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
+#include "__mingw_fix_stat.h"
 
 /**
  * Returns _path without trailing slash if any
@@ -17,7 +18,6 @@
  *   to free it.
  */
 
-char* __mingw_fix_stat_path (const char* _path);
 char* __mingw_fix_stat_path (const char* _path)
 {
   int len;
diff --git a/mingw-w64-crt/stdio/__mingw_fix_wstat_path.c 
b/mingw-w64-crt/stdio/__mingw_fix_wstat_path.c
index 838e4aa30..f42b322d1 100644
--- a/mingw-w64-crt/stdio/__mingw_fix_wstat_path.c
+++ b/mingw-w64-crt/stdio/__mingw_fix_wstat_path.c
@@ -6,6 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
+#include "__mingw_fix_stat.h"
 
 /**
  * Returns _path without trailing slash if any
@@ -17,7 +18,6 @@
  *   to free it.
  */
 
-wchar_t* __mingw_fix_wstat_path (const wchar_t* _path);
 wchar_t* __mingw_fix_wstat_path (const wchar_t* _path)
 {
   int len;
diff --git a/mingw-w64-crt/stdio/msvcr110plus_stat32.c 
b/mingw-w64-crt/stdio/msvcr110plus_stat32.c
index 9623c80f5..1ecf805e1 100644
--- a/mingw-w64-crt/stdio/msvcr110plus_stat32.c
+++ b/mingw-w64-crt/stdio/msvcr110plus_stat32.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-char *__mingw_fix_stat_path(const char *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl stat32(const char *_Filename, struct _stat32 *_Stat);
 int __cdecl stat32(const char *_Filename, struct _stat32 *_Stat)
diff --git a/mingw-w64-crt/stdio/msvcr110plus_stat64i32.c 
b/mingw-w64-crt/stdio/msvcr110plus_stat64i32.c
index 2799ed42e..c524cf96d 100644
--- a/mingw-w64-crt/stdio/msvcr110plus_stat64i32.c
+++ b/mingw-w64-crt/stdio/msvcr110plus_stat64i32.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-char *__mingw_fix_stat_path(const char *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl stat64i32(const char *_Filename, struct _stat64i32 *_Stat);
 int __cdecl stat64i32(const char *_Filename, struct _stat64i32 *_Stat)
diff --git a/mingw-w64-crt/stdio/msvcr110plus_wstat32.c 
b/mingw-w64-crt/stdio/msvcr110plus_wstat32.c
index 0123148d5..54286398e 100644
--- a/mingw-w64-crt/stdio/msvcr110plus_wstat32.c
+++ b/mingw-w64-crt/stdio/msvcr110plus_wstat32.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-wchar_t *__mingw_fix_wstat_path(const wchar_t *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl wstat32(const wchar_t *_Filename, struct _stat32 *_Stat);
 int __cdecl wstat32(const wchar_t *_Filename, struct _stat32 *_Stat)
diff --git a/mingw-w64-crt/stdio/msvcr110plus_wstat64i32.c 
b/mingw-w64-crt/stdio/msvcr110plus_wstat64i32.c
index 1ad9b53b4..1da8aca74 100644
--- a/mingw-w64-crt/stdio/msvcr110plus_wstat64i32.c
+++ b/mingw-w64-crt/stdio/msvcr110plus_wstat64i32.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-wchar_t *__mingw_fix_wstat_path(const wchar_t *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl wstat64i32(const wchar_t *_Filename, struct _stat64i32 *_Stat);
 int __cdecl wstat64i32(const wchar_t *_Filename, struct _stat64i32 *_Stat)
diff --git a/mingw-w64-crt/stdio/msvcr110pre_stat32.c 
b/mingw-w64-crt/stdio/msvcr110pre_stat32.c
index d2d45e83a..9577578bb 100644
--- a/mingw-w64-crt/stdio/msvcr110pre_stat32.c
+++ b/mingw-w64-crt/stdio/msvcr110pre_stat32.c
@@ -8,8 +8,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <errno.h>
-
-char *__mingw_fix_stat_path(const char *_path);
+#include "__mingw_fix_stat.h"
 
 /* For pre-msvcr110 builds, we cannot use _stat32() function as it does
  * not signal EOVERFLOW when file size does not fit into the st_size field,
diff --git a/mingw-w64-crt/stdio/msvcr110pre_stat64i32.c 
b/mingw-w64-crt/stdio/msvcr110pre_stat64i32.c
index e3311f28a..fa43a31ed 100644
--- a/mingw-w64-crt/stdio/msvcr110pre_stat64i32.c
+++ b/mingw-w64-crt/stdio/msvcr110pre_stat64i32.c
@@ -8,8 +8,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <errno.h>
-
-char *__mingw_fix_stat_path(const char *_path);
+#include "__mingw_fix_stat.h"
 
 /* For pre-msvcr110 builds, we cannot use _stat64i32() function as it does
  * not signal EOVERFLOW when file size does not fit into the st_size field,
diff --git a/mingw-w64-crt/stdio/msvcr110pre_wstat32.c 
b/mingw-w64-crt/stdio/msvcr110pre_wstat32.c
index b7fb9489d..8ed720288 100644
--- a/mingw-w64-crt/stdio/msvcr110pre_wstat32.c
+++ b/mingw-w64-crt/stdio/msvcr110pre_wstat32.c
@@ -8,8 +8,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <errno.h>
-
-wchar_t *__mingw_fix_wstat_path(const wchar_t *_path);
+#include "__mingw_fix_stat.h"
 
 /* For pre-msvcr110 builds, we cannot use _wstat32() function as it does
  * not signal EOVERFLOW when file size does not fit into the st_size field,
diff --git a/mingw-w64-crt/stdio/msvcr110pre_wstat64i32.c 
b/mingw-w64-crt/stdio/msvcr110pre_wstat64i32.c
index d872e9e59..553b938c4 100644
--- a/mingw-w64-crt/stdio/msvcr110pre_wstat64i32.c
+++ b/mingw-w64-crt/stdio/msvcr110pre_wstat64i32.c
@@ -8,8 +8,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <errno.h>
-
-wchar_t *__mingw_fix_wstat_path(const wchar_t *_path);
+#include "__mingw_fix_stat.h"
 
 /* For pre-msvcr110 builds, we cannot use _wstat64i32() function as it does
  * not signal EOVERFLOW when file size does not fit into the st_size field,
diff --git a/mingw-w64-crt/stdio/stat32i64.c b/mingw-w64-crt/stdio/stat32i64.c
index 3291ef6b8..38e8706b0 100644
--- a/mingw-w64-crt/stdio/stat32i64.c
+++ b/mingw-w64-crt/stdio/stat32i64.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-char *__mingw_fix_stat_path(const char *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl stat32i64(const char *_Filename, struct _stat32i64 *_Stat);
 int __cdecl stat32i64(const char *_Filename, struct _stat32i64 *_Stat)
diff --git a/mingw-w64-crt/stdio/stat64.c b/mingw-w64-crt/stdio/stat64.c
index 930696fae..2dbd70865 100644
--- a/mingw-w64-crt/stdio/stat64.c
+++ b/mingw-w64-crt/stdio/stat64.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-char *__mingw_fix_stat_path(const char *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl stat64(const char *_Filename, struct stat64 *_Stat)
 {
diff --git a/mingw-w64-crt/stdio/wstat32i64.c b/mingw-w64-crt/stdio/wstat32i64.c
index ea190f573..b1e79c776 100644
--- a/mingw-w64-crt/stdio/wstat32i64.c
+++ b/mingw-w64-crt/stdio/wstat32i64.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-wchar_t *__mingw_fix_wstat_path(const wchar_t *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl wstat32i64(const wchar_t *_Filename, struct _stat32i64 *_Stat);
 int __cdecl wstat32i64(const wchar_t *_Filename, struct _stat32i64 *_Stat)
diff --git a/mingw-w64-crt/stdio/wstat64.c b/mingw-w64-crt/stdio/wstat64.c
index a496a54eb..5f2d92fc4 100644
--- a/mingw-w64-crt/stdio/wstat64.c
+++ b/mingw-w64-crt/stdio/wstat64.c
@@ -6,8 +6,7 @@
 
 #include <sys/stat.h>
 #include <stdlib.h>
-
-wchar_t *__mingw_fix_wstat_path(const wchar_t *_path);
+#include "__mingw_fix_stat.h"
 
 int __cdecl wstat64(const wchar_t *_Filename, struct stat64 *_Stat)
 {
-- 
2.49.0



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to