openbsd-ports/archivers/unrar/patches/patch-unicode_hpp
naddy bd3be081c6 Update to 4.00 release; maintainer timeout.
Switch version numbering to the official version from version.hpp,
different from the distfile numbering.  jasper@ agrees.

The current license allows PERMIT_*=Yes.  sthen@ agrees.
2011-03-18 20:14:58 +00:00

13 lines
450 B
Plaintext

$OpenBSD: patch-unicode_hpp,v 1.3 2011/03/18 20:14:58 naddy Exp $
--- unicode.hpp.orig Wed Mar 9 17:36:52 2011
+++ unicode.hpp Wed Mar 9 17:37:14 2011
@@ -30,7 +30,7 @@ int uni_done();
// 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