History

Detect fseeko replacement on mingw.

cbagwell committed 16 years ago

Commit b110c3b1 parent 12bfcf22 files · +9 −0Browse files

Unified · Split

2 files
  1. configure.ac +3 −0
  2. src/util.h +6 −0
configure.ac+3−0
@@ -180,6 +180,9 @@ if test "$ac_cv_sys_file_offset_bits" = "64"; then · 179 unmodified lines
180180 AC_DEFINE(_LARGEFILE_SOURCE, 1)
181181 fi
182182
183+dnl Check for mingw's _fseeki64
184+AC_CHECK_FUNCS(fseeko64)
185+
183186 dnl Allow libtool to be silenced
184187 AC_MSG_CHECKING([whether libtool should be silenced])
185188 AC_ARG_ENABLE(silent-libtool,
src/util.h+6−0
@@ -73,6 +73,12 @@ · 72 unmodified lines
7373
7474 #endif
7575
76+#if defined(HAVE_FSEEKO64) && !defined(HAVE_FSEEKO)
77+#define fseeko fseeko64
78+#define ftello ftello64
79+#define HAVE_FSEEKO 1
80+#endif
81+
7682 #if defined(DOS) || defined(WIN32) || defined(__NT__) || defined(__DJGPP__) || defined(__OS2__)
7783 #define LAST_SLASH(path) max(strrchr(path, '/'), strrchr(path, '\\'))
7884 #define IS_ABSOLUTE(path) ((path)[0] == '/' || (path)[0] == '\\' || (path)[1] == ':')

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t