diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-07-02 13:21:27 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-07-02 13:21:27 +0000 |
commit | c97d2153eb96e505ace42b39ee3fb83bd035f1c0 (patch) | |
tree | 6bc3c4dca6abc1489f417d3f744cc3ec2f633f13 /tools | |
parent | 880cf620ea1ecc96a595d342075394f0999b633d (diff) |
INTEGRATION: CWS ooo11rc (1.2.32); FILE MERGED
2003/06/27 14:22:24 haggai 1.2.32.1: #i10477# add --without-gpc switch to optionally build without gpc library
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/poly2.cxx | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx index 33020772da9f..256f8dc2f942 100644 --- a/tools/source/generic/poly2.cxx +++ b/tools/source/generic/poly2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: poly2.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2003-03-27 17:04:20 $ + * last change: $Author: vg $ $Date: 2003-07-02 14:21:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,6 +61,8 @@ #define _SV_POLY2_CXX +#ifdef HAVE_GPC_H + #ifndef __gpc_h extern "C" { @@ -68,6 +70,16 @@ extern "C" } #endif +#else + +// No GPC +#define GPC_INT 0 +#define GPC_UNION 0 +#define GPC_DIFF 0 +#define GPC_XOR 0 + +#endif // HAVE_GPC_H + #include <cstring> #include <cmath> #ifndef _POLY_H @@ -446,6 +458,8 @@ void PolyPolygon::GetXOR( const PolyPolygon& rPolyPoly, PolyPolygon& rResult ) c // ----------------------------------------------------------------------- +#ifdef HAVE_GPC_H + void* PolyPolygon::ImplCreateGPCPolygon() const { gpc_polygon* pRet = new gpc_polygon; @@ -523,6 +537,21 @@ void PolyPolygon::ImplDoOperation( const PolyPolygon& rPolyPoly, PolyPolygon& rR delete pResult; } +#else +// No GPC implementation + +void* PolyPolygon::ImplCreateGPCPolygon() const +{ + return NULL; +} + +void PolyPolygon::ImplDoOperation( const PolyPolygon& rPolyPoly, PolyPolygon& rResult, ULONG nOperation ) const +{ + return; +} + +#endif // HAVE_GPC_H + // ----------------------------------------------------------------------- USHORT PolyPolygon::Count() const |