Ignore:
Timestamp:
Dec 7, 2007, 7:25:54 PM (13 years ago)
Author:
charles
Message:

use fizz' suggestion on from ticket #534 on how to make platform.c more portable wrt header include order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r4043 r4089  
    2323 *****************************************************************************/
    2424
     25#ifdef __BEOS__
     26  #include <signal.h>
     27  #include <fs_info.h>
     28  #include <FindDirectory.h>
     29  #include <kernel/OS.h>
     30  #define BEOS_MAX_THREADS 256
     31#elif defined(WIN32)
     32  #include <windows.h>
     33  #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_PROFILE */
     34#else
     35  #define _XOPEN_SOURCE 500 /* needed for recursive locks. */
     36  #ifndef __USE_UNIX98
     37  #define __USE_UNIX98 /* some older Linuxes need it spelt out for them */
     38  #endif
     39  #include <pthread.h>
     40#endif
     41
    2542#include <assert.h>
    2643#include <errno.h>
     
    2845#include <stdlib.h>
    2946#include <string.h>
    30 
    31 #ifdef __BEOS__
    32   #include <signal.h>
    33   #include <fs_info.h>
    34   #include <FindDirectory.h>
    35   #include <kernel/OS.h>
    36   #define BEOS_MAX_THREADS 256
    37 #elif defined(WIN32)
    38   #include <windows.h>
    39   #include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_PROFILE */
    40 #else
    41   #define _XOPEN_SOURCE 500 /* needed for recursive locks. */
    42   #ifndef __USE_UNIX98
    43   #define __USE_UNIX98 /* some older Linuxes need it spelt out for them */
    44   #endif
    45   #include <pthread.h>
    46 #endif
    4747
    4848#include <sys/types.h>
Note: See TracChangeset for help on using the changeset viewer.