]> source.dussan.org Git - tigervnc.git/commitdiff
MinGW tweak: calculateScaleBoundary is not an inline method. If it
authorPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 13:39:24 +0000 (13:39 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 9 Dec 2008 13:39:24 +0000 (13:39 +0000)
was, it should have been defined in the header file. See
http://www.parashift.com/c++-faq-lite/inline-functions.html.

Also, protect header file with normal #ifdef.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3343 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScaledPixelBuffer.h

index ffd68b6445c888de8ee031e0187aa55ec40c315f..4c37752115034fcf94b4e7bb61952ef144c8d87b 100644 (file)
@@ -22,6 +22,9 @@
 // from the source buffer to destination buffer using bilinear 
 // interpolation.
 
+#ifndef __RFB_SCALEDPIXELBUFFER_H__
+#define __RFB_SCALEDPIXELBUFFER_H__
+
 #include <rdr/types.h>
 #include <rdr/Exception.h>
 #include <rfb/Rect.h>
@@ -87,7 +90,7 @@ namespace rfb {
 
     // Calculate the scaled image rectangle which depend on the source 
     // image rectangle.
-    inline Rect calculateScaleBoundary(const Rect& r);
+    Rect calculateScaleBoundary(const Rect& r);
 
   protected:
 
@@ -122,3 +125,5 @@ namespace rfb {
   };
 
 };
+
+#endif