Change sprintfw() from a macro to an inline function, as g++ 2 doesn't like
variadic macros (yet gcc 2 does), and remove the no longer necessary alpha optimization flags downgrade. ok giovanni@ benoit@
This commit is contained in:
parent
0f569324e1
commit
a60af20a1f
@ -1,9 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.50 2010/12/30 07:51:27 benoit Exp $
|
||||
# $OpenBSD: Makefile,v 1.51 2011/01/11 18:23:12 miod Exp $
|
||||
|
||||
COMMENT= extract, list, and test RAR archives
|
||||
|
||||
DISTNAME= unrarsrc-4.0.2
|
||||
PKGNAME= unrar-4.02
|
||||
REVISION= 0
|
||||
CATEGORIES= archivers
|
||||
|
||||
HOMEPAGE= http://www.rarlab.com/
|
||||
@ -25,11 +26,6 @@ WRKDIST= ${WRKDIR}/unrar
|
||||
MAKE_FILE= makefile.unix
|
||||
MAKE_FLAGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
||||
|
||||
# gcc 3.3.5 internal compiler error
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
EXTRA_CFLAGS= -O0
|
||||
.endif
|
||||
|
||||
MAKE_FLAGS+= EXTRA_CFLAGS=${EXTRA_CFLAGS}
|
||||
|
||||
do-install:
|
||||
|
@ -1,12 +1,12 @@
|
||||
$OpenBSD: patch-unicode_hpp,v 1.1 2010/12/30 07:51:31 benoit Exp $
|
||||
--- unicode.hpp.orig Mon Dec 6 07:56:08 2010
|
||||
+++ unicode.hpp Mon Dec 6 07:56:19 2010
|
||||
@@ -29,6 +29,8 @@
|
||||
$OpenBSD: patch-unicode_hpp,v 1.2 2011/01/11 18:23:14 miod Exp $
|
||||
--- unicode.hpp.orig Fri Nov 26 07:20:01 2010
|
||||
+++ unicode.hpp Sun Jan 9 18:59:44 2011
|
||||
@@ -29,6 +29,8 @@ int uni_done();
|
||||
// Borland C++ Builder 5 uses the old style swprintf without the buffer size,
|
||||
// so we replace it with snwprintf in our custom sprintfw definition.
|
||||
#define sprintfw snwprintf
|
||||
+#elif defined (__OpenBSD__)
|
||||
+#define sprintfw(s,...) *(s)=0
|
||||
+inline int sprintfw(wchar *s, ...) { *s = '\0'; return 1; }
|
||||
#else
|
||||
#define sprintfw swprintf
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user