From 9f3288726640affae7171ad2d15c01842d899489 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 26 Feb 2013 11:10:28 +0000 Subject: Fix inline use. --- graphics/quesoglc/Makefile | 4 +- graphics/quesoglc/distinfo | 4 +- graphics/quesoglc/patches/patch-src_ofont.c | 67 +++++++++++++++++++++++++++++ graphics/quesoglc/patches/patch-src_ofont.h | 48 +++++++++++++++++++++ 4 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 graphics/quesoglc/patches/patch-src_ofont.c create mode 100644 graphics/quesoglc/patches/patch-src_ofont.h (limited to 'graphics/quesoglc') diff --git a/graphics/quesoglc/Makefile b/graphics/quesoglc/Makefile index cb9b80f212a..5cc48d50da5 100644 --- a/graphics/quesoglc/Makefile +++ b/graphics/quesoglc/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.3 2012/10/06 14:11:18 asau Exp $ +# $NetBSD: Makefile,v 1.4 2013/02/26 11:10:28 joerg Exp $ # DISTNAME= quesoglc-0.7.1-free PKGNAME= ${DISTNAME:S/-free$//} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=quesoglc/} EXTRACT_SUFX= .tar.bz2 diff --git a/graphics/quesoglc/distinfo b/graphics/quesoglc/distinfo index 254a793d547..69605d97fad 100644 --- a/graphics/quesoglc/distinfo +++ b/graphics/quesoglc/distinfo @@ -1,5 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/02/15 16:03:46 jmcneill Exp $ +$NetBSD: distinfo,v 1.2 2013/02/26 11:10:28 joerg Exp $ SHA1 (quesoglc-0.7.1-free.tar.bz2) = b8a30d69816612d19a968772f528d512ad0947f5 RMD160 (quesoglc-0.7.1-free.tar.bz2) = d9405e0d57ee5c2bfb7f9b256ea1d47bd2f767c0 Size (quesoglc-0.7.1-free.tar.bz2) = 641475 bytes +SHA1 (patch-src_ofont.c) = 5e3b4604c327fe186c02144d6c831253beadce7f +SHA1 (patch-src_ofont.h) = c8ff08d3bc4fb13a44ab7e2534689d05ef668c06 diff --git a/graphics/quesoglc/patches/patch-src_ofont.c b/graphics/quesoglc/patches/patch-src_ofont.c new file mode 100644 index 00000000000..ec23fa77a31 --- /dev/null +++ b/graphics/quesoglc/patches/patch-src_ofont.c @@ -0,0 +1,67 @@ +$NetBSD: patch-src_ofont.c,v 1.1 2013/02/26 11:10:28 joerg Exp $ + +--- src/ofont.c.orig 2013-02-25 16:31:40.000000000 +0000 ++++ src/ofont.c +@@ -284,7 +284,7 @@ GLboolean __glcFontFace(__GLCfont* This, + + #ifndef GLC_FT_CACHE + /* Open the font file */ +-inline void* __glcFontOpen(__GLCfont* This, __GLCcontext* inContext) ++void* __glcFontOpen(__GLCfont* This, __GLCcontext* inContext) + { + return __glcFaceDescOpen(This->faceDesc, inContext); + } +@@ -292,7 +292,7 @@ inline void* __glcFontOpen(__GLCfont* Th + + + /* Close the font file */ +-inline void __glcFontClose(__GLCfont* This) ++void __glcFontClose(__GLCfont* This) + { + __glcFaceDescClose(This->faceDesc); + } +@@ -321,7 +321,7 @@ GLboolean __glcFontPrepareGlyph(__GLCfon + + + /* Get the size of the bitmap in which the glyph will be rendered */ +-inline GLboolean __glcFontGetBitmapSize(__GLCfont* This, GLint* outWidth, ++GLboolean __glcFontGetBitmapSize(__GLCfont* This, GLint* outWidth, + GLint *outHeight, GLint* outBoundingBox, + GLfloat inScaleX, GLfloat inScaleY, + int inFactor, __GLCcontext* inContext) +@@ -336,7 +336,7 @@ inline GLboolean __glcFontGetBitmapSize( + /* Get the maximum metrics of a face that is the bounding box that encloses + * every glyph of the face, and the maximum advance of the face. + */ +-inline GLfloat* __glcFontGetMaxMetric(__GLCfont* This, GLfloat* outVec, ++GLfloat* __glcFontGetMaxMetric(__GLCfont* This, GLfloat* outVec, + __GLCcontext* inContext) + { + return __glcFaceDescGetMaxMetric(This->faceDesc, outVec, inContext); +@@ -345,7 +345,7 @@ inline GLfloat* __glcFontGetMaxMetric(__ + + + /* Decompose the outline of a glyph */ +-inline GLboolean __glcFontOutlineDecompose(__GLCfont* This, ++GLboolean __glcFontOutlineDecompose(__GLCfont* This, + __GLCrendererData* inData, + __GLCcontext* inContext) + { +@@ -355,7 +355,7 @@ inline GLboolean __glcFontOutlineDecompo + + + /* Render the glyph in a bitmap */ +-inline GLboolean __glcFontGetBitmap(__GLCfont* This, GLint inWidth, ++GLboolean __glcFontGetBitmap(__GLCfont* This, GLint inWidth, + GLint inHeight, void* inBuffer, + __GLCcontext* inContext) + { +@@ -368,7 +368,7 @@ inline GLboolean __glcFontGetBitmap(__GL + /* Chek if the outline of the glyph is empty (which means it is a spacing + * character). + */ +-inline GLboolean __glcFontOutlineEmpty(__GLCfont* This, __GLCcontext* inContext) ++GLboolean __glcFontOutlineEmpty(__GLCfont* This, __GLCcontext* inContext) + { + return __glcFaceDescOutlineEmpty(This->faceDesc, inContext); + } diff --git a/graphics/quesoglc/patches/patch-src_ofont.h b/graphics/quesoglc/patches/patch-src_ofont.h new file mode 100644 index 00000000000..5d46ced252e --- /dev/null +++ b/graphics/quesoglc/patches/patch-src_ofont.h @@ -0,0 +1,48 @@ +$NetBSD: patch-src_ofont.h,v 1.1 2013/02/26 11:10:28 joerg Exp $ + +--- src/ofont.h.orig 2013-02-25 16:31:17.000000000 +0000 ++++ src/ofont.h +@@ -27,11 +27,6 @@ + + #include "ofacedesc.h" + +-/* It seems that Visual C++ does not recognize the inline keyword !?! */ +-#ifdef _MSC_VER +-#define inline +-#endif +- + struct __GLCfontRec { + GLint id; + __GLCfaceDescriptor* faceDesc; +@@ -54,24 +49,24 @@ GLfloat* __glcFontGetKerning(__GLCfont* + GLfloat* outVec, __GLCcontext* inContext, + GLfloat inScaleX, GLfloat inScaleY); + #ifndef GLC_FT_CACHE +-inline void* __glcFontOpen(__GLCfont* This, __GLCcontext* inContext); +-inline void __glcFontClose(__GLCfont* This); ++void* __glcFontOpen(__GLCfont* This, __GLCcontext* inContext); ++void __glcFontClose(__GLCfont* This); + #endif + GLboolean __glcFontPrepareGlyph(__GLCfont* This, __GLCcontext* inContext, + GLfloat inScaleX, GLfloat inScaleY, + GLCulong inGlyphIndex); +-inline GLboolean __glcFontGetBitmapSize(__GLCfont* This, GLint* outWidth, ++GLboolean __glcFontGetBitmapSize(__GLCfont* This, GLint* outWidth, + GLint *outHeight, GLint* outBoundingBox, + GLfloat inScaleX, GLfloat inScaleY, + int inFactor, __GLCcontext* inContext); +-inline GLfloat* __glcFontGetMaxMetric(__GLCfont* This, GLfloat* outVec, ++GLfloat* __glcFontGetMaxMetric(__GLCfont* This, GLfloat* outVec, + __GLCcontext* inContext); +-inline GLboolean __glcFontOutlineDecompose(__GLCfont* This, ++GLboolean __glcFontOutlineDecompose(__GLCfont* This, + __GLCrendererData* inData, + __GLCcontext* inContext); +-inline GLboolean __glcFontGetBitmap(__GLCfont* This, GLint inWidth, ++GLboolean __glcFontGetBitmap(__GLCfont* This, GLint inWidth, + GLint inHeight, void* inBuffer, + __GLCcontext* inContext); +-inline GLboolean __glcFontOutlineEmpty(__GLCfont* This, ++GLboolean __glcFontOutlineEmpty(__GLCfont* This, + __GLCcontext* inContext); + #endif /* __glc_ofont_h */ -- cgit v1.2.3