]> git.saurik.com Git - wxWidgets.git/blame - include/wx/math.h
Avoid error message when closing message
[wxWidgets.git] / include / wx / math.h
CommitLineData
a02afd14
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: math.h
3// Purpose: Declarations/definitions of common math functions
4// Author: John Labenski and others
5// Modified by:
6// Created: 02/02/03
4e32eea1 7// RCS-ID:
a02afd14 8// Copyright: (c)
65571936 9// Licence: wxWindows licence
a02afd14
VZ
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MATH_H_
13#define _WX_MATH_H_
14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
a02afd14
VZ
16#pragma interface "math.h"
17#endif
18
19#include "wx/defs.h"
20
21// unknown __VISAGECC__, __SYMANTECCC__
22
23#if defined(__VISUALC__) || defined(__BORLANDC__) || defined(__WATCOMC__)
24 #include <float.h>
25 #define wxFinite(x) _finite(x)
26#elif defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
27 defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
4e32eea1 28 defined(__HPUX__)||defined(__MWERKS__)
a02afd14
VZ
29 #define wxFinite(x) finite(x)
30#else
31 #define wxFinite(x) ((x) == (x))
32#endif
33
34
35#if defined(__VISUALC__)||defined(__BORLAND__)
36 #define wxIsNaN(x) _isnan(x)
37#elif defined(__GNUG__)||defined(__GNUWIN32__)||defined(__DJGPP__)|| \
38 defined(__SGI_CC__)||defined(__SUNCC__)||defined(__XLC__)|| \
4e32eea1
WS
39 defined(__HPUX__)||defined(__MWERKS__)
40 #define wxIsNaN(x) isnan(x)
a02afd14
VZ
41#else
42 #define wxIsNaN(x) ((x) != (x))
43#endif
44
45
46#endif // _WX_MATH_H_