Ignore:
Timestamp:
Jun 21, 2010, 4:44:35 PM (11 years ago)
Author:
charles
Message:

(trunk libT) part of rb07's win32 portability patches from ticket #3311

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r10736 r10814  
    1212
    1313#ifdef WIN32
     14 #include <w32api.h>
     15 #define WINVER  WindowsXP
    1416 #include <windows.h>
    1517 #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_MYDOCUMENTS */
     
    437439                              appname, NULL );
    438440#elif defined( WIN32 )
    439             char appdata[TR_MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */
     441            char appdata[TR_PATH_MAX]; /* SHGetFolderPath() requires MAX_PATH */
    440442            SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata );
    441443            s = tr_buildPath( appdata, appname, NULL );
Note: See TracChangeset for help on using the changeset viewer.