summaryrefslogtreecommitdiff
path: root/editors/dasher/patches/patch-ag
blob: 011747d9c6236860109e6a6dc82fa3925fd31789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ag,v 1.3 2008/05/29 17:53:36 drochner Exp $

--- Src/DasherCore/DasherViewSquare.cpp.orig	2008-04-07 19:25:34.000000000 +0200
+++ Src/DasherCore/DasherViewSquare.cpp
@@ -805,7 +805,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;