~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/math.h

  • Committer: Brian Aker
  • Date: 2008-09-04 19:31:00 UTC
  • Revision ID: brian@tangent.org-20080904193100-l849hgghfy4urj43
Changing default character set from this point on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* - mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
10
 
 *
11
 
 *  This program is distributed in the hope that it will be useful,
12
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *  GNU General Public License for more details.
15
 
 *
16
 
 *  You should have received a copy of the GNU General Public License
17
 
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
20
 
 
21
 
#ifndef DRIZZLE_SERVER_UTIL_MATH
22
 
#define DRIZZLE_SERVER_UTIL_MATH
23
 
 
24
 
/**
25
 
 * This is all to work around what I _think_ is a bug in Sun Studio headers
26
 
 * But for now, it just gets things compiling while I get the Sun Studio 
27
 
 * guys to look at it.
28
 
 */
29
 
 
30
 
#if defined(_FORTEC_)
31
 
# if defined(HAVE_IEEEFP_H)
32
 
#  include <ieeefp.h>
33
 
# endif
34
 
# include CMATH_H
35
 
 
36
 
# if defined(__cplusplus) 
37
 
 
38
 
#  if defined(NEED_ISNAN)
39
 
int isnan (double a);
40
 
#  endif /* defined(NEED_ISNAN) */
41
 
 
42
 
#  if defined(NEED_ISINF)
43
 
int isinf(double a);
44
 
#  endif /* defined(NEED_ISINF) */
45
 
 
46
 
#  if defined(NEED_ISFINITE)
47
 
int isfinite(double a);
48
 
#  endif /* defined(NEED_ISFINITE) */
49
 
 
50
 
# endif /* defined(__cplusplus) */
51
 
#endif /* __FORTEC__ */
52
 
 
53
 
 
54
 
#endif /* DRIZZLE_SERVER_UTIL_MATH */