~drizzle-trunk/drizzle/development

520.9.2 by mordred
Added no-good-very-bad-awful workaround header for the solaris fp thing.
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
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
26
 * But for now, it just gets things compiling while I get the Sun Studio
520.9.2 by mordred
Added no-good-very-bad-awful workaround header for the solaris fp thing.
27
 * guys to look at it.
28
 */
29
520.9.3 by mordred
zomg. Solaris actually builds all the way!!!
30
#if defined(_FORTEC_)
31
# if defined(HAVE_IEEEFP_H)
32
#  include <ieeefp.h>
33
# endif
34
# include CMATH_H
35
660.1.3 by Eric Herman
removed trailing whitespace with simple script:
36
# if defined(__cplusplus)
520.9.3 by mordred
zomg. Solaris actually builds all the way!!!
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) */
520.9.2 by mordred
Added no-good-very-bad-awful workaround header for the solaris fp thing.
51
#endif /* __FORTEC__ */
520.9.3 by mordred
zomg. Solaris actually builds all the way!!!
52
53
54
#endif /* DRIZZLE_SERVER_UTIL_MATH */