Changeset 14348
- Timestamp:
- Nov 30, 2014, 8:08:20 PM (8 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/file-test.c
r14332 r14348 10 10 #include <string.h> 11 11 12 #ifndef WIN3212 #ifndef _WIN32 13 13 #include <sys/types.h> 14 14 #include <sys/stat.h> … … 24 24 #include "libtransmission-test.h" 25 25 26 #ifndef WIN3226 #ifndef _WIN32 27 27 #define NATIVE_PATH_SEP "/" 28 28 #else … … 43 43 create_symlink (const char * dst_path, const char * src_path, bool dst_is_dir) 44 44 { 45 #ifndef WIN3245 #ifndef _WIN32 46 46 47 47 (void) dst_is_dir; … … 72 72 create_hardlink (const char * dst_path, const char * src_path) 73 73 { 74 #ifndef WIN3274 #ifndef _WIN32 75 75 76 76 return link (src_path, dst_path) != -1; … … 110 110 const char * slashPos = strchr (p, '/'); 111 111 112 #ifdef WIN32112 #ifdef _WIN32 113 113 114 114 const char * backslashPos = strchr (p, '\\'); … … 618 618 tr_free (name); 619 619 620 #ifdef WIN32620 #ifdef _WIN32 621 621 622 622 name = tr_sys_path_basename ("c:\\a\\b\\c", &err); -
trunk/libtransmission/file.h
r14332 r14348 14 14 #include <time.h> 15 15 16 #ifdef WIN3216 #ifdef _WIN32 17 17 #include <windows.h> 18 18 #endif -
trunk/libtransmission/platform.c
r14336 r14348 269 269 } 270 270 271 #if defined (__APPLE__) || defined ( WIN32)271 #if defined (__APPLE__) || defined (_WIN32) 272 272 #define RESUME_SUBDIR "Resume" 273 273 #define TORRENT_SUBDIR "Torrents" -
trunk/libtransmission/utils.c
r14337 r14348 1129 1129 } 1130 1130 1131 #ifdef WIN321131 #ifdef _WIN32 1132 1132 1133 1133 char * -
trunk/libtransmission/utils.h
r14337 r14348 180 180 char* tr_utf8clean (const char * str, int len) TR_GNUC_MALLOC; 181 181 182 #ifdef WIN32182 #ifdef _WIN32 183 183 184 184 char * tr_win32_native_to_utf8 (const wchar_t * text,
Note: See TracChangeset
for help on using the changeset viewer.