Path: blob/devel/ElmerGUI/netgen/libsrc/include/mystdlib.h
3206 views
#ifndef FILE_MYSTDLIB1#define FILE_MYSTDLIB234#include <iostream>5#include <iomanip>6#include <fstream>7#include <sstream>89#ifdef OLDCINCLUDE1011// e.g., CC compiler on SGI12#include <stdlib.h>13#include <stdio.h>14#include <math.h>15#include <malloc.h>16#include <ctype.h>17#include <time.h>1819#else2021// new standard22#include <cstdlib>23#include <cstdio>24#include <cmath>25#include <cctype>26#include <ctime>27#include <cstring>28#include <climits>29#endif30313233#include <new>34#include <string>35#include <typeinfo>3637#ifdef PARALLEL38#undef SEEK_SET39#undef SEEK_CUR40#undef SEEK_END41#include <mpi.h>42#endif4344#ifdef _OPENMP45#include <omp.h>46#endif474849#ifdef METIS50namespace metis { extern "C" {51#include <metis.h>52} }53#endif54555657#ifndef NO_PARALLEL_THREADS58#ifndef WIN3259#include <pthread.h>60#endif61#endif6263#ifndef M_PI64#define M_PI 3.1415926535897932384665#endif666768/*** Windows headers ***/69#ifdef _MSC_VER70# define WIN32_LEAN_AND_MEAN71# ifndef NO_PARALLEL_THREADS72# include <afxwin.h>73# include <afxmt.h>74# endif75# include <windows.h>76# undef WIN32_LEAN_AND_MEAN77# include <winnt.h>7879#else80# ifndef NO_PARALLEL_THREADS81# include <pthread.h>82# endif83#endif8485/*86extern void* operator new(std::size_t) throw (std::bad_alloc);87extern void* operator new[](std::size_t) throw (std::bad_alloc);88extern void operator delete(void*) throw();89extern void operator delete[](void*) throw();90*/9192/*93extern int mem_alloc;94extern int mem_total_alloc;95extern int mem_max_alloc;96extern int mem_total_alloc_array;97extern int mem_total_alloc_table;98*/99100using namespace std;101102#endif103104105106