Changeset 1581


Ignore:
Timestamp:
Nov 16, 2007 3:49:01 AM (17 years ago)
Author:
bennylp
Message:

Fixed bug in PJ_DECL_NO_RETURN macro which prevents building libraries as DLL

File:
1 edited

Legend:

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

    r1410 r1581  
    696696 
    697697/** 
    698  * @def PJ_DECL_NO_RETURN(type) 
    699  * @param type The return type of the function. 
    700  * Declare a function that will not return. 
    701  */ 
    702 /** 
    703  * @def PJ_BEGIN_DECL 
    704  * Mark beginning of declaration section in a header file. 
    705  */ 
    706 /** 
    707  * @def PJ_END_DECL 
    708  * Mark end of declaration section in a header file. 
    709  */ 
    710 #ifdef __cplusplus 
    711 #  define PJ_DECL_NO_RETURN(type)   type PJ_NORETURN 
    712 #  define PJ_IDECL_NO_RETURN(type)  PJ_INLINE(type) PJ_NORETURN 
    713 #  define PJ_BEGIN_DECL             extern "C" { 
    714 #  define PJ_END_DECL               } 
    715 #else 
    716 #  define PJ_DECL_NO_RETURN(type)   PJ_NORETURN type 
    717 #  define PJ_IDECL_NO_RETURN(type)  PJ_NORETURN PJ_INLINE(type) 
    718 #  define PJ_BEGIN_DECL 
    719 #  define PJ_END_DECL 
    720 #endif 
    721  
    722  
    723 /** 
    724698 * This macro declares platform/compiler specific specifier prefix 
    725699 * to be added to symbol declaration to export the symbol when PJLIB 
     
    800774 
    801775/** 
     776 * @def PJ_DECL_NO_RETURN(type) 
     777 * @param type The return type of the function. 
     778 * Declare a function that will not return. 
     779 */ 
     780/** 
     781 * @def PJ_BEGIN_DECL 
     782 * Mark beginning of declaration section in a header file. 
     783 */ 
     784/** 
     785 * @def PJ_END_DECL 
     786 * Mark end of declaration section in a header file. 
     787 */ 
     788#ifdef __cplusplus 
     789#  define PJ_DECL_NO_RETURN(type)   PJ_DECL(type) PJ_NORETURN 
     790#  define PJ_IDECL_NO_RETURN(type)  PJ_INLINE(type) PJ_NORETURN 
     791#  define PJ_BEGIN_DECL             extern "C" { 
     792#  define PJ_END_DECL               } 
     793#else 
     794#  define PJ_DECL_NO_RETURN(type)   PJ_NORETURN PJ_DECL(type) 
     795#  define PJ_IDECL_NO_RETURN(type)  PJ_NORETURN PJ_INLINE(type) 
     796#  define PJ_BEGIN_DECL 
     797#  define PJ_END_DECL 
     798#endif 
     799 
     800 
     801 
     802/** 
    802803 * @def PJ_DECL_DATA(type) 
    803804 * @param type The data type. 
Note: See TracChangeset for help on using the changeset viewer.