diff options
author | Peter Åstrand <astrand@cendio.se> | 2008-12-09 13:39:24 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2008-12-09 13:39:24 +0000 |
commit | b49cd1baaa6423c8d1c6d72edd4d083baa8624c7 (patch) | |
tree | c2cbc9c1f0d863de6c95e8bd69c9d2f00df40694 /common | |
parent | 06eee26b2f666d2bcfd07fdb351e368b2b45b45f (diff) | |
download | tigervnc-b49cd1baaa6423c8d1c6d72edd4d083baa8624c7.tar.gz tigervnc-b49cd1baaa6423c8d1c6d72edd4d083baa8624c7.zip |
MinGW tweak: calculateScaleBoundary is not an inline method. If it
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
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/ScaledPixelBuffer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/rfb/ScaledPixelBuffer.h b/common/rfb/ScaledPixelBuffer.h index ffd68b64..4c377521 100644 --- a/common/rfb/ScaledPixelBuffer.h +++ b/common/rfb/ScaledPixelBuffer.h @@ -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 |