netgen/libsrc/include/mystdlib.h

78 lines
1.1 KiB
C
Raw Normal View History

2009-01-13 04:40:13 +05:00
#ifndef FILE_MYSTDLIB
#define FILE_MYSTDLIB
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <cctype>
#include <ctime>
#include <cstring>
#include <climits>
2009-01-18 05:25:35 +05:00
#include <algorithm>
2014-09-08 21:21:09 +06:00
#include <memory>
2016-02-22 22:43:51 +05:00
#include <thread>
#include <mutex>
2018-01-04 17:00:01 +05:00
#include <atomic>
2019-11-05 20:19:49 +05:00
#include <optional>
2009-01-13 04:40:13 +05:00
#include <new>
#include <string>
#include <typeinfo>
#ifdef PARALLEL
2011-02-14 17:27:18 +05:00
// #undef SEEK_SET
// #undef SEEK_CUR
// #undef SEEK_END
2009-01-13 04:40:13 +05:00
#include <mpi.h>
2012-06-25 23:45:44 +06:00
#include <unistd.h> // for usleep (only for parallel)
2009-01-13 04:40:13 +05:00
#endif
2009-01-25 17:35:44 +05:00
/*
2009-01-13 04:40:13 +05:00
#ifdef METIS
namespace metis { extern "C" {
#include <metis.h>
} }
#endif
2009-01-25 17:35:44 +05:00
*/
2009-01-13 04:40:13 +05:00
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
/*** Windows headers ***/
#ifdef _MSC_VER
# define WIN32_LEAN_AND_MEAN
# ifndef NO_PARALLEL_THREADS
# ifdef MSVC_EXPRESS
# else
2024-02-11 15:02:18 +05:00
// # include <afxwin.h>
// # include <afxmt.h>
# endif // MSVC_EXPRESS
2009-01-13 04:40:13 +05:00
# endif
// # include <windows.h>
2009-01-13 04:40:13 +05:00
# undef WIN32_LEAN_AND_MEAN
2024-02-11 15:02:18 +05:00
// # include <winnt.h>
#else // Not using MC VC++
2009-01-13 04:40:13 +05:00
#endif
2024-02-11 15:02:18 +05:00
// using namespace std;
namespace netgen
{
using namespace std;
}
2009-01-13 04:40:13 +05:00
#endif