view liboctave/util/lo-math.h @ 19473:4b8b942ef8db

limit specific CPPFLAGS variables to specific convenience libs (bug #38928) * libinterp/Makefile.am (AM_CPPFLAGS): Remove $(FT2_CPPFLAGS), $(HDF5_CPPFLAGS), $(Z_CPPFLAGS), $(FFTW_XCPPFLAGS), and $(LLVM_CPPFLAGS) from the list. * liboctave/Makefile.am (AM_CPPFLAGS): Remove $(CURL_CPPFLAGS), $(SPARSE_XCPPFLAGS), $(ARPACK_CPPFLAGS), $(QRUPDATE_CPPFLAGS), and $(FFTW_XCPPFLAGS) from the list. * libinterp/corefcn/module.mk (corefcn_libcorefcn_la_CPPFLAGS): Include $(Z_CPPFLAGS) in the list. * liboctave/array/module.mk (array_libarray_la_CPPFLAGS): Include $(FFTW_XCPPFLAGS) in the list. * liboctave/numeric/module.mk (numeric_libnumeric_la_CPPFLAGS): Remove $(ARPACK_CPPFLAGS) from the list. * liboctave/util/module.mk (util_libutil_la_CPPFLAGS): Include $(CURL_CPPFLAGS) in the list.
author John W. Eaton <jwe@octave.org>
date Thu, 23 Oct 2014 17:12:58 -0400
parents ebb3ef964372
children 4197fc428c7d
line wrap: on
line source

/*

Copyright (C) 2007-2013 John W. Eaton

This file is part of Octave.

Octave is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.

Octave is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with Octave; see the file COPYING.  If not, see
<http://www.gnu.org/licenses/>.

*/

#if !defined (octave_lo_math_h)
#define octave_lo_math_h 1

#if defined (__cplusplus)
#include <cmath>
// if #undef log2 is missing in cmath, undef it here
#if defined (log2)
#undef log2
#endif
#else
#include <math.h>
#endif

#if defined (HAVE_SUNMATH_H)
#include <sunmath.h>
#endif

#endif