Changeset 6937


Ignore:
Timestamp:
Oct 20, 2008, 7:34:19 PM (12 years ago)
Author:
charles
Message:

(libT) more win32 portability fixes from Spry

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.h

    r6795 r6937  
    2828#include "transmission.h"
    2929
     30#ifdef __cplusplus
     31extern "C" {
     32#endif
     33
    3034struct tr_benc;
    3135
     
    4246                         tr_info *   inf );
    4347
     48#ifdef __cplusplus
     49}
    4450#endif
     51
     52#endif
  • trunk/libtransmission/platform.c

    r6924 r6937  
    466466                              "Application Support", "Transmission", NULL );
    467467#elif defined( WIN32 )
    468             char configDir[MAX_PATH_LENGTH];
    469             GetModuleFileName( GetModuleHandle( NULL ), configDir, sizeof( configDir ) );
    470             s = tr_buildPath( basename( configDir ), "Transmission", NULL );
     468            char appdata[MAX_PATH]; /* SHGetFolderPath() requires MAX_PATH */
     469            SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata );
     470            s = tr_buildPath( appdata, "Transmission", NULL );
    471471#else
    472472            if( ( s = getenv( "XDG_CONFIG_HOME" ) ) )
  • trunk/libtransmission/web.c

    r6923 r6937  
    1919#include "transmission.h"
    2020#include "list.h"
     21#include "net.h" /* socklen_t */
    2122#include "trevent.h"
    2223#include "utils.h"
Note: See TracChangeset for help on using the changeset viewer.