History

Detect fseeko replacement on mingw.

cbagwell committed 16 years ago

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

Showing the changes to src/util.h (1 of 2 files). Show all

Unified · Split

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