$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