Ignore:
Timestamp:
Nov 1, 2005 4:42:51 PM (19 years ago)
Author:
bennylp
Message:

Added suppor /and fix things for SunOS port

Location:
pjproject/main/pjlib/include/pj
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/include/pj

    • Property svn:ignore set to
      config_site.h
  • pjproject/main/pjlib/include/pj/compat/errno.h

    r1 r2  
    1010 
    1111#elif (defined(PJ_LINUX) && PJ_LINUX != 0) || \ 
    12       (defined(PJ_LINUX_KERNEL) && PJ_LINUX_KERNEL != 0) 
     12      (defined(PJ_LINUX_KERNEL) && PJ_LINUX_KERNEL != 0) || \ 
     13      (defined(PJ_SUNOS) && PJ_SUNOS != 0) 
    1314 
    1415    typedef int pj_os_err_type; 
  • pjproject/main/pjlib/include/pj/compat/high_precision.h

    r1 r2  
    3636 
    3737#else 
     38#   warning "High precision math is not available" 
     39 
    3840    /* 
    3941     * Last, fallback to 32-bit arithmetics. 
  • pjproject/main/pjlib/include/pj/config.h

    r1 r2  
    2222 
    2323/******************************************************************** 
    24  * Include target specific configuration. 
    25  */ 
    26 #if defined(PJ_WIN32) 
     24 * Include target OS specific configuration. 
     25 */ 
     26#if defined(PJ_WIN32) && PJ_WIN32!=0 
    2727#  include <pj/compat/os_win32.h> 
    28 #elif defined(PJ_LINUX) 
     28#elif defined(PJ_LINUX) && PJ_LINUX!=0 
    2929#  include <pj/compat/os_linux.h> 
    30 #elif defined(PJ_LINUX_KERNEL) 
     30#elif defined(PJ_LINUX_KERNEL) && PJ_LINUX_KERNEL!=0 
    3131#  include <pj/compat/os_linux_kernel.h> 
    32 #elif defined(PJ_PALMOS) 
     32#elif defined(PJ_PALMOS) && PJ_PALMOS!=0 
    3333#  include <pj/compat/os_palmos.h> 
     34#elif defined(PJ_SUNOS) && PJ_SUNOS!=0 
     35#  include <pj/compat/os_sunos.h> 
    3436#else 
    3537#  error "Please specify target os." 
     
    4143 */ 
    4244#if defined (PJ_M_I386) && PJ_M_I386 != 0 
    43 include <pj/compat/m_i386.h> 
     45 include <pj/compat/m_i386.h> 
    4446#elif defined (PJ_M_M68K) && PJ_M_M68K != 0 
    4547#   include <pj/compat/m_m68k.h> 
    4648#elif defined (PJ_M_ALPHA) && PJ_M_ALPHA != 0 
    4749#   include <pj/compat/m_alpha.h> 
     50#elif defined (PJ_M_SPARC) && PJ_M_SPARC != 0 
     51#   include <pj/compat/m_sparc.h> 
    4852#else 
    4953#  error "Please specify target machine." 
  • pjproject/main/pjlib/include/pj/os.h

    r1 r2  
    5858 */ 
    5959#if !defined(PJ_THREAD_DESC_SIZE) 
    60 #   define PJ_THREAD_DESC_SIZE      (PJ_MAX_OBJ_NAME + 10*sizeof(long)) 
     60#   define PJ_THREAD_DESC_SIZE      (16) 
    6161#endif 
    6262 
     
    6565 * or native API.  
    6666 */ 
    67 typedef pj_uint8_t pj_thread_desc[PJ_THREAD_DESC_SIZE]; 
     67typedef long pj_thread_desc[PJ_THREAD_DESC_SIZE]; 
    6868 
    6969/** 
     
    245245 * @param value     The value. 
    246246 */ 
    247 PJ_DECL(void) pj_thread_local_set(long index, void *value); 
     247PJ_DECL(pj_status_t) pj_thread_local_set(long index, void *value); 
    248248 
    249249/** 
     
    784784    struct 
    785785    { 
     786#if defined(PJ_IS_LITTLE_ENDIAN) && PJ_IS_LITTLE_ENDIAN!=0 
    786787        pj_uint32_t lo;     /**< Low 32-bit value of the 64-bit value. */ 
    787788        pj_uint32_t hi;     /**< high 32-bit value of the 64-bit value. */ 
     789#else 
     790        pj_uint32_t hi;     /**< high 32-bit value of the 64-bit value. */ 
     791        pj_uint32_t lo;     /**< Low 32-bit value of the 64-bit value. */ 
     792#endif 
    788793    } u32;                  /**< The 64-bit value as two 32-bit values. */ 
    789794 
Note: See TracChangeset for help on using the changeset viewer.