/* -*- mode:C++;compile-command: "g++-3.4 -I.. -g -c global.cc" -*- */
/* Global definition and constants (see also dispatch.h)
* Copyright (C) 2000,2014 B. Parisse, Institut Fourier, 38402 St Martin d'Heres
*
* This program 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.
*
* This program 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 this program. If not, see .
*/
#ifndef _GIAC_GLOBAL_H
#define _GIAC_GLOBAL_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "first.h"
#define GIAC_CONTEXT const context * contextptr
#define GIAC_CONTEXT0 const context * contextptr=0
#if !defined(HAVE_NO_SYS_TIMES_H) && !defined(BESTA_OS) && !defined(__MINGW_H) && !defined(NSPIRE)
#include
#else
#if defined VISUALC || defined BESTA_OS
typedef long pid_t;
#else // VISUALC
#if !defined(__MINGW_H) && !defined(NSPIRE) && !defined(__ANDROID__) && !defined(NSPIRE_NEWLIB) && !defined(OSX) && !defined(IOS) && !defined(OSXIOS) && !defined(FIR_LINUX)
#include "wince_replacements.h"
#endif
#ifdef __MINGW_H
#include
#endif
#endif // VISUALC
#endif // HAVE_NO_SYS_TIMES_H
// #ifndef __APPLE__
#if defined VISUALC || defined BESTA_OS
#include
#include
#endif
#ifndef WIN32
#include
//#define isnan __isnan
//#define isinf __isinf
#endif
// #endif
#ifdef SOFTMATH
#include "softmath.h"
#else
#include
#endif
#ifdef _SOFTMATH_H
inline double giac_log(double d){
return std::giac_gnuwince_log(d);
}
#else
inline double giac_log(double d){
return std::log(d);
}
#endif
#ifdef HAVE_LIBPTHREAD
#include
#endif
#ifdef HAVE_PTHREAD_H
#include
#endif
#include "vector.h"
#include
#ifndef NSPIRE
#include
#endif
#include
#include
#include