Ignore:
Timestamp:
Dec 2, 2005 10:28:52 PM (18 years ago)
Author:
nanang
Message:

Updated with wince files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.2/pjlib/src/pj/string.h

    r88 r91  
    1 /* $Header: /pjproject/pjlib/src/pj/string.h 5     6/14/05 2:15p Bennylp $ */ 
     1/* $Header: /cvs/pjproject-0.2.9.3/pjlib/src/pj/string.h,v 1.1 2005/12/02 20:02:30 nn Exp $ */ 
    22/*  
    33 * PJLIB - PJ Foundation Library 
     
    3333#include <string.h> 
    3434 
    35 PJ_BEGIN_DECL 
    36  
    37 /** 
    38  * @defgroup PJ_PSTR String Operations 
    39  * @ingroup PJ_DS 
    40  * @{ 
    41  */ 
    42  
    4335#if defined(PJ_WIN32) && PJ_WIN32==1 
    4436#  define strcasecmp    stricmp 
    4537#  define strncasecmp   strnicmp 
     38#  define snprintf      _snprintf 
     39#  define vsnprintf     _vsnprintf       
     40#elif defined(PJ_WIN32_WINCE) 
     41//#  define strcasecmp  stricmp 
     42//#  define strncasecmp strnicmp 
    4643#  define snprintf      _snprintf 
    4744#  define vsnprintf     _vsnprintf       
     
    5148#endif 
    5249 
     50 
     51PJ_BEGIN_DECL 
     52 
     53/** 
     54 * @defgroup PJ_PSTR String Operations 
     55 * @ingroup PJ_DS 
     56 * @{ 
     57 */ 
     58 
    5359/** 
    5460 * Create string initializer from a normal C string. 
     
    387393 * @return the number of characters printed. 
    388394 */ 
    389 #ifdef PJ_WIN32 
     395#if defined(PJ_WIN32) && !defined(PJ_WIN32_WINCE) 
     396#   define pj_vsnprintf _vsnprintf  
    390397#   define pj_snprintf _snprintf 
    391398#else 
     399#   define pj_vsnprintf vsnprintf 
    392400#   define pj_snprintf snprintf 
    393401#endif 
Note: See TracChangeset for help on using the changeset viewer.