This is needed by php5 and also provieded by the libiconv-full
SVN-Revision: 24775
endef
define Build/Compile
- $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o
+ $(TARGET_CC) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include
$(TARGET_CROSS)ar rcs $(PKG_BUILD_DIR)/libiconv.a $(PKG_BUILD_DIR)/iconv.o
endef
*/
#include <stddef.h>
+#include <iconv.h>
-typedef void *iconv_t;
+int _libiconv_version = _LIBICONV_VERSION;
iconv_t iconv_open (const char *tocode, const char *fromcode)
{
#ifndef _ICONV_H
#define _ICONV_H 1
+#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
+extern int _libiconv_version; /* Likewise */
+
#include <stddef.h>
typedef void *iconv_t;