Ignore:
Timestamp:
Jul 22, 2006 1:42:56 PM (18 years ago)
Author:
bennylp
Message:

Changed all public header files to compile correctly when -ansi and -pedantic is used, also when g++ is used

File:
1 edited

Legend:

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

    r582 r622  
    3535 
    3636 
    37 #define PJ_INLINE_SPECIFIER     static inline 
    3837#define PJ_THREAD_FUNC   
    3938#define PJ_NORETURN              
    40 #define PJ_ATTR_NORETURN        __attribute__ ((noreturn)) 
    4139 
    4240#define PJ_HAS_INT64            1 
    4341 
    44 typedef long long pj_int64_t; 
    45 typedef unsigned long long pj_uint64_t; 
     42#ifdef __STRICT_ANSI__ 
     43  #include <inttypes.h>  
     44  typedef int64_t               pj_int64_t; 
     45  typedef uint64_t              pj_uint64_t; 
     46  #define PJ_INLINE_SPECIFIER   static __inline 
     47  #define PJ_ATTR_NORETURN       
     48#else 
     49  typedef long long             pj_int64_t; 
     50  typedef unsigned long long    pj_uint64_t; 
     51  #define PJ_INLINE_SPECIFIER   static inline 
     52  #define PJ_ATTR_NORETURN      __attribute__ ((noreturn)) 
     53#endif 
    4654 
    4755#define PJ_INT64(val)           val##LL 
Note: See TracChangeset for help on using the changeset viewer.