crt: Define fopen64 symbol as alias in crt-aliases.def.in
Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index dfe88f6..9c138c4 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -1126,7 +1126,6 @@
stdio/strtok_r.c \
stdio/_Exit.c stdio/_findfirst64i32.c stdio/_findnext64i32.c stdio/_wfindfirst64i32.c stdio/_wfindnext64i32.c \
stdio/asprintf.c \
- stdio/fopen64.c \
stdio/ftruncate64.c stdio/lltoa.c stdio/lltow.c stdio/lseek64.c \
stdio/__mingw_fix_stat.h stdio/__mingw_fix_stat_finish.c \
stdio/__mingw_fix_stat_path.c stdio/__mingw_fix_wstat_path.c \
diff --git a/mingw-w64-crt/def-include/crt-aliases.def.in b/mingw-w64-crt/def-include/crt-aliases.def.in
index eb80f45..4ddabf7 100644
--- a/mingw-w64-crt/def-include/crt-aliases.def.in
+++ b/mingw-w64-crt/def-include/crt-aliases.def.in
@@ -298,6 +298,7 @@
; This is list of symbol aliases for Large File Specification (extension to Single UNIX Specification)
; https://unix.org/version2/whatsnew/lfs20mar.html#3.1 section 3.1 Transitional Extensions
+fopen64 == fopen
#ifndef NO_FPOS64_ALIASES
; fgetpos and fsetpos are already 64-bit
fgetpos64 == fgetpos
diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def b/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def
index f22ad05..70a4230 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def
+++ b/mingw-w64-crt/lib-common/api-ms-win-crt-stdio-l1-1-0.def
@@ -162,6 +162,7 @@
fgetwc
fgetws
fopen
+fopen64 == fopen
fopen_s
fputc
fputs
diff --git a/mingw-w64-crt/stdio/fopen64.c b/mingw-w64-crt/stdio/fopen64.c
deleted file mode 100644
index 1c6e78d..0000000
--- a/mingw-w64-crt/stdio/fopen64.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * 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.
- */
-#include <stdio.h>
-
-FILE* fopen64 (const char* filename, const char* mode)
-{
- return fopen (filename, mode);
-}