sswf/sswf.patch

Wed, 25 Feb 2009 12:10:46 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 25 Feb 2009 12:10:46 +0100
changeset 110
b70af19a3465
child 111
7f3c34b6208f
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@110 1 Index: include/sswf/libsswf.h
michael@110 2 --- include/sswf/libsswf.h.orig 2008-06-23 07:51:47 +0200
michael@110 3 +++ include/sswf/libsswf.h 2008-06-23 18:10:33 +0200
michael@110 4 @@ -71,12 +71,14 @@
michael@110 5 /* wint_t is an "equivalent" to wchar_t without being limited to 16 bits as on MS-Windows */
michael@110 6 #ifndef _MSVC
michael@110 7 #ifndef __APPLE_CC__
michael@110 8 +#ifndef __FreeBSD__
michael@110 9 #ifndef _WINT_T
michael@110 10 #define _WINT_T
michael@110 11 typedef unsigned int wint_t;
michael@110 12 #endif
michael@110 13 #endif
michael@110 14 #endif
michael@110 15 +#endif
michael@110 16
michael@110 17 #ifndef M_PI
michael@110 18 #define M_PI 3.14159265358979323846
michael@110 19 @@ -88,7 +90,7 @@
michael@110 20 #define rint(x) ((double) (long) floor(x + 0.5))
michael@110 21 #endif
michael@110 22
michael@110 23 -#ifdef _LIBICONV_H
michael@110 24 +#if defined(_LIBICONV_H) && !defined(__FreeBSD__)
michael@110 25 #define ICONV_INPUT_CAST
michael@110 26 #else
michael@110 27 /* older versions of iconv() were broken in regard to the
michael@110 28 Index: include/sswf/libsswf_c.h
michael@110 29 --- include/sswf/libsswf_c.h.orig 2008-06-23 07:51:47 +0200
michael@110 30 +++ include/sswf/libsswf_c.h 2008-06-23 18:10:33 +0200
michael@110 31 @@ -38,7 +38,7 @@
michael@110 32
michael@110 33 #include <stdlib.h>
michael@110 34 #include <stdarg.h>
michael@110 35 -#if IRIX
michael@110 36 +#if IRIX || defined(__FreeBSD__)
michael@110 37 #include <inttypes.h>
michael@110 38 #endif
michael@110 39 #include <sswf/libsswf-config.h>

mercurial