Ignore:
Timestamp:
May 6, 2010, 3:07:18 PM (11 years ago)
Author:
charles
Message:

(trunk libT) tweak MAX_PATH_LENGTH a little for better portability -- defer to limits.h's definition when present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r10417 r10633  
    278278        path = tr_buildPath( appdata, "Transmission", NULL );
    279279#elif defined( __HAIKU__ )
    280         char buf[MAX_PATH_LENGTH];
     280        char buf[TR_PATH_MAX];
    281281        find_directory( B_USER_SETTINGS_DIRECTORY, -1, true, buf, sizeof(buf) );
    282282        path = tr_buildPath( buf, "Transmission", NULL );
     
    437437                              appname, NULL );
    438438#elif defined( WIN32 )
    439             char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */
     439            char appdata[TR_MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */
    440440            SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata );
    441441            s = tr_buildPath( appdata, appname, NULL );
    442442#elif defined( __HAIKU__ )
    443             char buf[MAX_PATH_LENGTH];
     443            char buf[TR_MAX_PATH];
    444444            find_directory( B_USER_SETTINGS_DIRECTORY, -1, true, buf, sizeof(buf) );
    445445            s = tr_buildPath( buf, appname, NULL );
Note: See TracChangeset for help on using the changeset viewer.