Ignore:
Timestamp:
Dec 13, 2014, 3:22:39 PM (6 years ago)
Author:
mikedld
Message:

Fix compilation on Windows

This should not affect non-Win32 platforms in any way.
As for Win32 (both MinGW and MSVC), this should hopefully allow for
unpatched compilation. Correct functioning is not yet guaranteed though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r14348 r14382  
    1616#include <stdlib.h>
    1717#include <string.h>
    18 #include <unistd.h> /* getuid() */
    1918
    2019#ifdef __HAIKU__
     
    2322
    2423#ifdef _WIN32
    25  #include <w32api.h>
    26  #define WINVER  WindowsXP
     24 #include <process.h> /* _beginthreadex (), _endthreadex () */
    2725 #include <windows.h>
    2826 #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_MYDOCUMENTS */
    2927#else
     28#include <unistd.h> /* getuid() */
    3029 #ifdef BUILD_MAC_CLIENT
    3130  #include <CoreFoundation/CoreFoundation.h>
     
    3736#endif
    3837
    39 #ifdef _WIN32
    40 #include <libgen.h> /* dirname() */
    41 #endif
    42 
    4338#include "transmission.h"
    4439#include "file.h"
     
    230225#ifdef _WIN32
    231226
    232 char *
     227static char *
    233228win32_get_special_folder (int folder_id)
    234229{
Note: See TracChangeset for help on using the changeset viewer.