Showing the changes to src/util.h (1 of 2 files). Show all
Unified · Split
| @@ -73,6 +73,12 @@ · 72 unmodified lines | |||
| 73 | 73 | ||
| 74 | #endif | 74 | #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] == ':') |