Changeset 24899


Ignore:
Timestamp:
2011-01-04T15:20:17+01:00 (5 years ago)
Author:
jow
Message:

[packages] libiconv: declare api functions as extern "C", solves linking with C++ applications (#8529)

Location:
packages/libs/libiconv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libiconv/Makefile

    r24870 r24899  
    1212 
    1313PKG_NAME:=libiconv 
    14 PKG_RELEASE:=3 
     14PKG_RELEASE:=4 
    1515 
    1616include $(INCLUDE_DIR)/package.mk 
  • packages/libs/libiconv/src/include/iconv.h

    r24870 r24899  
    22#define _ICONV_H 1 
    33 
     4#define _LIBICONV_VERSION 0x010B    /* version number: (major<<8) + minor */ 
     5 
    46#include <stddef.h> 
    57 
    6 #define _LIBICONV_VERSION 0x010B    /* version number: (major<<8) + minor */ 
     8#ifdef __cplusplus 
     9extern "C" { 
     10#endif 
     11 
    712extern int _libiconv_version; /* Likewise */ 
    813 
     
    1924iconv_close(iconv_t cd); 
    2025 
     26#ifdef __cplusplus 
     27} 
     28#endif 
     29 
    2130#endif /* _ICONV_H */ 
Note: See TracChangeset for help on using the changeset viewer.