Changeset 560


Ignore:
Timestamp:
Jun 28, 2006 3:26:43 PM (18 years ago)
Author:
bennylp
Message:

Added PJ_INT64() and PJ_UINT64() macro to construct 64bit constants in portable manner

Location:
pjproject/trunk/pjlib/include/pj/compat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/cc_gcc.h

    r122 r560  
    4545typedef unsigned long long pj_uint64_t; 
    4646 
     47#define PJ_INT64(val)           val##LL 
     48#define PJ_UINT64(val)          val##LLU 
    4749#define PJ_INT64_FMT            "L" 
    4850 
  • pjproject/trunk/pjlib/include/pj/compat/cc_msvc.h

    r315 r560  
    6363typedef unsigned __int64 pj_uint64_t; 
    6464 
    65 #define PJ_INT64_FMT    "I64" 
     65#define PJ_INT64(val)           val##i64 
     66#define PJ_UINT64(val)          val##ui64 
     67#define PJ_INT64_FMT            "I64" 
    6668 
    6769 
Note: See TracChangeset for help on using the changeset viewer.