2009-01-13 04:40:13 +05:00
|
|
|
#ifndef FILE_MYSTDLIB
|
|
|
|
#define FILE_MYSTDLIB
|
|
|
|
|
2009-02-01 01:16:46 +05:00
|
|
|
#ifndef WIN32
|
2009-01-14 02:14:02 +05:00
|
|
|
#include <config.h>
|
2009-02-01 01:16:46 +05:00
|
|
|
#endif
|
2009-01-14 02:14:02 +05:00
|
|
|
|
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
#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>
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
|
|
|
|
#include <new>
|
|
|
|
#include <string>
|
|
|
|
#include <typeinfo>
|
|
|
|
|
|
|
|
#ifdef PARALLEL
|
|
|
|
#undef SEEK_SET
|
|
|
|
#undef SEEK_CUR
|
|
|
|
#undef SEEK_END
|
|
|
|
#include <mpi.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _OPENMP
|
|
|
|
#include <omp.h>
|
|
|
|
#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 NO_PARALLEL_THREADS
|
|
|
|
#ifndef WIN32
|
|
|
|
#include <pthread.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef M_PI
|
|
|
|
#define M_PI 3.14159265358979323846
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/*** Windows headers ***/
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
# define WIN32_LEAN_AND_MEAN
|
|
|
|
# ifndef NO_PARALLEL_THREADS
|
2009-01-31 03:12:17 +05:00
|
|
|
# ifdef MSVC_EXPRESS
|
|
|
|
# include <pthread.h>
|
|
|
|
# else
|
|
|
|
# include <afxwin.h>
|
|
|
|
# include <afxmt.h>
|
|
|
|
# endif // MSVC_EXPRESS
|
2009-01-13 04:40:13 +05:00
|
|
|
# endif
|
|
|
|
# include <windows.h>
|
|
|
|
# undef WIN32_LEAN_AND_MEAN
|
2009-02-01 01:16:46 +05:00
|
|
|
# include <winnt.h>
|
2009-01-13 04:40:13 +05:00
|
|
|
|
2009-01-31 03:12:17 +05:00
|
|
|
#else // Not using MC VC++
|
2009-02-01 01:16:46 +05:00
|
|
|
|
|
|
|
# ifndef NO_PARALLEL_THREADS
|
|
|
|
# include <pthread.h>
|
2009-01-31 03:12:17 +05:00
|
|
|
# endif
|
2009-02-01 01:16:46 +05:00
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|