Kaydet (Commit) 05c950fe authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Fixes to make it compile on Windows

üst 00f5e8f6
......@@ -475,6 +475,9 @@ namespace canvas
typedef ::std::numeric_limits< Source > SourceLimits;
typedef ::std::numeric_limits< Target > TargetLimits;
#undef min
#undef max
if( ( arg<0 && !TargetLimits::is_signed) || // loosing the sign here
( SourceLimits::is_signed && arg<TargetLimits::min()) || // underflow will happen
( arg>TargetLimits::max() ) ) // overflow will happen
......
......@@ -30,6 +30,8 @@
#define _CAIROCANVAS_WIN32_CAIRO_HXX
#include "cairo_cairo.hxx"
#include <prewin.h>
#include <postwin.h>
namespace cairo {
......
......@@ -30,6 +30,7 @@
#define _SV_KEYCODES_HXX
#include <vcl/sv.h>
#undef DELETE
#include <com/sun/star/awt/Key.hpp>
#include <com/sun/star/awt/KeyGroup.hpp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment