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
180 AC_DEFINE(_LARGEFILE_SOURCE, 1)180 AC_DEFINE(_LARGEFILE_SOURCE, 1)
181fi181fi
182 182
183dnl Check for mingw's _fseeki64
184AC_CHECK_FUNCS(fseeko64)
185
183dnl Allow libtool to be silenced186dnl Allow libtool to be silenced
184AC_MSG_CHECKING([whether libtool should be silenced])187AC_MSG_CHECKING([whether libtool should be silenced])
185AC_ARG_ENABLE(silent-libtool,188AC_ARG_ENABLE(silent-libtool,
src/util.h+6−0
@@ -73,6 +73,12 @@ · 72 unmodified lines
73 73
74#endif74#endif
75 75
76#if defined(HAVE_FSEEKO64) && !defined(HAVE_FSEEKO)
77#define fseeko fseeko64
78#define ftello ftello64
79#define HAVE_FSEEKO 1
80#endif
81
76#if defined(DOS) || defined(WIN32) || defined(__NT__) || defined(__DJGPP__) || defined(__OS2__)82#if defined(DOS) || defined(WIN32) || defined(__NT__) || defined(__DJGPP__) || defined(__OS2__)
77 #define LAST_SLASH(path) max(strrchr(path, '/'), strrchr(path, '\\'))83 #define LAST_SLASH(path) max(strrchr(path, '/'), strrchr(path, '\\'))
78 #define IS_ABSOLUTE(path) ((path)[0] == '/' || (path)[0] == '\\' || (path)[1] == ':')84 #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