
$FreeBSD: ports/converters/libiconv/files/patch-include::iconv.h.in,v 1.2 2002/06/16 19:11:11 marcus Exp $

--- include/iconv.h.in.orig	Thu May 23 07:48:42 2002
+++ include/iconv.h.in	Sat Jun 15 14:04:11 2002
@@ -21,6 +21,11 @@
 #ifndef _LIBICONV_H
 #define _LIBICONV_H
 
+#ifdef __APPLE__
+#define LIBICONV_PLUG
+#endif
+
+
 #define _LIBICONV_VERSION 0x0108    /* version number: (major<<8) + minor */
 extern int _libiconv_version;       /* Likewise */
 
@@ -68,6 +73,8 @@
    encoding `tocode'. */
 #ifndef LIBICONV_PLUG
 #define iconv_open libiconv_open
+#else
+#define libiconv_open iconv_open
 #endif
 extern iconv_t iconv_open (const char* tocode, const char* fromcode);
 
@@ -78,17 +85,21 @@
    Decrements `*outbytesleft' and increments `*outbuf' by the same amount. */
 #ifndef LIBICONV_PLUG
 #define iconv libiconv
+#else
+#define libiconv iconv
 #endif
 extern size_t iconv (iconv_t cd, @ICONV_CONST@ char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
 
 /* Frees resources allocated for conversion descriptor `cd'. */
 #ifndef LIBICONV_PLUG
 #define iconv_close libiconv_close
+#else
+#define libiconv_close iconv_close
 #endif
 extern int iconv_close (iconv_t cd);
 
 
-#ifndef LIBICONV_PLUG
+#if !defined(LIBICONV_PLUG) || defined(__APPLE__)
 
 /* Nonstandard extensions. */
 
