mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fix linux build
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59222 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
1bbc6ef60c
commit
34be4dfc57
@ -30,7 +30,13 @@
|
||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
double _hypot(double x, double y)
|
||||
{
|
||||
return sqrt(x*x + y*y);
|
||||
}
|
||||
|
||||
#endif
|
||||
namespace agg
|
||||
{
|
||||
|
||||
|
||||
@ -11,6 +11,13 @@
|
||||
|
||||
#include "ximaiter.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#if CXIMAGE_SUPPORT_ENCODE
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -58,11 +58,13 @@
|
||||
#define CXIMAGE_SUPPORT_WINDOWS 0
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#ifdef WIN32
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef PI
|
||||
|
||||
@ -7,6 +7,15 @@
|
||||
|
||||
#include "ximaiter.h"
|
||||
|
||||
#include <queue>
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
#if CXIMAGE_SUPPORT_DSP
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@ -3578,13 +3587,6 @@ bool CxImage::Trace(RGBQUAD color_target, RGBQUAD color_trace)
|
||||
|
||||
#ifndef __MINGW32__
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#include <queue>
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
* Flood Fill
|
||||
|
||||
@ -5,6 +5,13 @@
|
||||
|
||||
#include "ximage.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// CxImage
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -804,6 +804,5 @@ protected:
|
||||
CxImage** ppFrames;
|
||||
//@}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
#endif // !defined(__CXIMAGE_H)
|
||||
|
||||
@ -5,6 +5,13 @@
|
||||
|
||||
#include "ximage.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
#if CXIMAGE_SUPPORT_DSP
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -6,6 +6,13 @@
|
||||
#include "ximage.h"
|
||||
#include "ximath.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
#if CXIMAGE_SUPPORT_INTERPOLATION
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -32,6 +32,13 @@
|
||||
#include "ximage.h"
|
||||
#include "ximadef.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
class CImageIterator
|
||||
{
|
||||
friend class CxImage;
|
||||
@ -148,7 +155,7 @@ inline void CImageIterator::SetRow(uint8_t *buf, int32_t n)
|
||||
inline void CImageIterator::GetRow(uint8_t *buf, int32_t n)
|
||||
{
|
||||
if ((IterImage!=NULL)&&(buf!=NULL)&&(n>0))
|
||||
memcpy(buf,IterImage,min(n,(int32_t)ima->GetEffWidth()));
|
||||
memcpy(buf,IterImage,min(n,(int32_t)ima->GetEffWidth()));
|
||||
}
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
inline uint8_t* CImageIterator::GetRow()
|
||||
|
||||
@ -5,6 +5,12 @@
|
||||
|
||||
#include "ximage.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
* returns the palette dimension in byte
|
||||
|
||||
@ -12,6 +12,13 @@
|
||||
|
||||
#include "ximaraw.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
#if CXIMAGE_SUPPORT_RAW
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -5,6 +5,14 @@
|
||||
|
||||
#include "ximage.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
* Checks if the image has a valid selection.
|
||||
|
||||
@ -2,6 +2,12 @@
|
||||
#include "ximath.h"
|
||||
#include <math.h>
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
//this module should contain some classes for geometrical transformations
|
||||
//usable with selections, etc... once it's done, that is. :)
|
||||
|
||||
|
||||
@ -7,6 +7,14 @@
|
||||
|
||||
#include "ximatif.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
|
||||
#if CXIMAGE_SUPPORT_TIF
|
||||
|
||||
#define FIX_16BPP_DARKIMG // + VK: if uncomment, dark 16bpp images are fixed
|
||||
|
||||
@ -6,6 +6,13 @@
|
||||
#include "ximage.h"
|
||||
#include "ximath.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) (((a)<(b))?(a):(b))
|
||||
#endif
|
||||
#ifndef max
|
||||
#define max(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
#if CXIMAGE_SUPPORT_BASICTRANSFORMATIONS
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/**
|
||||
|
||||
@ -8,6 +8,9 @@
|
||||
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#endif
|
||||
|
||||
TGlyphBitmap::TGlyphBitmap()
|
||||
{
|
||||
nX = 0;
|
||||
@ -23,7 +26,7 @@ TGlyphBitmap::~TGlyphBitmap()
|
||||
{
|
||||
if (bFreeData && pData != NULL)
|
||||
{
|
||||
free(pData);
|
||||
free(pData);
|
||||
pData = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user