diff options
Diffstat (limited to 'editors/dasher/patches/patch-ag')
-rw-r--r-- | editors/dasher/patches/patch-ag | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/editors/dasher/patches/patch-ag b/editors/dasher/patches/patch-ag index 6326e7f62b0..011290b93af 100644 --- a/editors/dasher/patches/patch-ag +++ b/editors/dasher/patches/patch-ag @@ -1,7 +1,16 @@ -$NetBSD: patch-ag,v 1.1 2007/11/05 20:01:00 drochner Exp $ +$NetBSD: patch-ag,v 1.2 2007/12/27 14:55:36 joerg Exp $ --- Src/DasherCore/DasherViewSquare.cpp.orig 2007-10-30 17:46:41.000000000 +0100 +++ Src/DasherCore/DasherViewSquare.cpp +@@ -791,7 +791,7 @@ void CDasherViewSquare::GetScaleFactor( + inline myint CDasherViewSquare::CustomIDiv(myint iNumerator, myint iDenominator) { + // Integer division rounding away from zero + +-#ifdef _WIN32 ++#if defined(_WIN32) || defined(__DragonFly__) + myint quot = iNumerator / iDenominator; + myint rem = (int64)iNumerator % (int64)iDenominator; + @@ -802,7 +802,7 @@ inline myint CDasherViewSquare::CustomID else return quot; |