sswf/sswf.patch

changeset 110
b70af19a3465
child 111
7f3c34b6208f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sswf/sswf.patch	Wed Feb 25 12:10:46 2009 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +Index: include/sswf/libsswf.h
     1.5 +--- include/sswf/libsswf.h.orig	2008-06-23 07:51:47 +0200
     1.6 ++++ include/sswf/libsswf.h	2008-06-23 18:10:33 +0200
     1.7 +@@ -71,12 +71,14 @@
     1.8 + /* wint_t is an "equivalent" to wchar_t without being limited to 16 bits as on MS-Windows */
     1.9 + #ifndef _MSVC
    1.10 + #ifndef __APPLE_CC__
    1.11 ++#ifndef __FreeBSD__
    1.12 + #ifndef _WINT_T
    1.13 + #define _WINT_T
    1.14 + typedef unsigned int	wint_t;
    1.15 + #endif
    1.16 + #endif
    1.17 + #endif
    1.18 ++#endif
    1.19 + 
    1.20 + #ifndef	M_PI
    1.21 + #define	M_PI		3.14159265358979323846
    1.22 +@@ -88,7 +90,7 @@
    1.23 + #define	rint(x)		((double) (long) floor(x + 0.5))
    1.24 + #endif
    1.25 + 
    1.26 +-#ifdef _LIBICONV_H
    1.27 ++#if defined(_LIBICONV_H) && !defined(__FreeBSD__)
    1.28 + #define	ICONV_INPUT_CAST
    1.29 + #else
    1.30 + /* older versions of iconv() were broken in regard to the
    1.31 +Index: include/sswf/libsswf_c.h
    1.32 +--- include/sswf/libsswf_c.h.orig	2008-06-23 07:51:47 +0200
    1.33 ++++ include/sswf/libsswf_c.h	2008-06-23 18:10:33 +0200
    1.34 +@@ -38,7 +38,7 @@
    1.35 + 
    1.36 + #include <stdlib.h>
    1.37 + #include <stdarg.h>
    1.38 +-#if IRIX
    1.39 ++#if IRIX || defined(__FreeBSD__)
    1.40 + #include <inttypes.h>
    1.41 + #endif
    1.42 + #include <sswf/libsswf-config.h>

mercurial