Changeset 24775


Ignore:
Timestamp:
2010-12-22T02:56:37+01:00 (7 years ago)
Author:
hauke
Message:

libiconv: add external var _libiconv_version

This is needed by php5 and also provieded by the libiconv-full

Location:
packages/libs/libiconv
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libiconv/Makefile

    r24705 r24775  
    2828 
    2929define Build/Compile 
    30         $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o 
     30        $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include 
    3131        $(TARGET_CROSS)ar rcs $(PKG_BUILD_DIR)/libiconv.a $(PKG_BUILD_DIR)/iconv.o 
    3232endef 
  • packages/libs/libiconv/src/iconv.c

    r24705 r24775  
    44 
    55#include <stddef.h> 
     6#include <iconv.h> 
    67 
    7 typedef void *iconv_t; 
     8int _libiconv_version = _LIBICONV_VERSION; 
    89 
    910iconv_t iconv_open (const char *tocode, const char *fromcode) 
  • packages/libs/libiconv/src/include/iconv.h

    r24711 r24775  
    55#ifndef _ICONV_H 
    66#define _ICONV_H 1 
     7 
     8#define _LIBICONV_VERSION 0x010B    /* version number: (major<<8) + minor */ 
     9extern  int _libiconv_version; /* Likewise */ 
    710 
    811#include <stddef.h> 
Note: See TracChangeset for help on using the changeset viewer.