openbsd-ports/math/gnumeric/patches/patch-src_sheet_c
2010-06-17 08:17:40 +00:00

30 lines
841 B
Plaintext

$OpenBSD: patch-src_sheet_c,v 1.3 2010/06/17 08:17:41 ajacoutot Exp $
gcc3 doesn't like function names that end with a numeral right after
alphabetical characters.
--- src/sheet.c.orig Thu Jun 10 22:07:38 2010
+++ src/sheet.c Thu Jun 17 09:09:45 2010
@@ -1067,7 +1067,7 @@ gnm_sheet_visibility_get_type (void)
/* ------------------------------------------------------------------------- */
static gboolean
-powerof2 (int i)
+powerof_2 (int i)
{
return i > 0 && (i & (i - 1)) == 0;
}
@@ -1077,10 +1077,10 @@ gnm_sheet_valid_size (int cols, int rows)
{
return (cols >= GNM_MIN_COLS &&
cols <= GNM_MAX_COLS &&
- powerof2 (cols) &&
+ powerof_2 (cols) &&
rows >= GNM_MIN_ROWS &&
rows <= GNM_MAX_ROWS &&
- powerof2 (rows)
+ powerof_2 (rows)
#if 0
&& 0x80000000u / (unsigned)(cols / 2) >= (unsigned)rows
#endif