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.h

    r10546 r10633  
    2727
    2828#ifdef WIN32
    29  #include <windows.h>
    30  #define MAX_PATH_LENGTH  MAX_PATH
     29 #include <windows.h> /* MAX_PATH */
    3130#else
    32  #define MAX_PATH_LENGTH  4096
     31 #include <limits.h> /* MAX_PATH */
     32#endif
     33#ifdef MAX_PATH
     34 #define TR_MAX_PATH MAX_PATH
     35#else
     36 #define TR_MAX_PATH 4096
    3337#endif
    3438
Note: See TracChangeset for help on using the changeset viewer.