
/*
 * Copyright (c) 2010 Chris Jones <jonesc@macports.org>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */
   
#ifndef _MACPORTS_CMATH_H_
#define _MACPORTS_CMATH_H_

/* Include the primary system cmath */
#include_next <cmath>

/* MP support header */
#include "MacportsLegacySupport.h"

/* llround */
#if __MP_LEGACY_SUPPORT_LLROUND__
#ifdef __cplusplus
extern "C" {
#endif
  /* Apparently present in library but header declarations are missing in 10.6 */
  extern long long int llrint   ( double );
  extern long long int llrintf  ( float );
  extern long long int llround  ( double );
  extern long long int llroundf ( float );
  extern long long int llrintl  ( long double );
  extern long long int llroundl ( long double );
#ifdef __cplusplus
}
#endif
#endif

#endif /* _MACPORTS_CMATH_H_ */
