Path: blob/devel/elmergrid/src/metis-5.1.0/GKlib/gk_arch.h
3206 views
/*!1\file gk_arch.h2\brief This file contains various architecture-specific declerations34\date Started 3/27/20075\author George6\version\verbatim $Id: gk_arch.h 10711 2011-08-31 22:23:04Z karypis $ \endverbatim7*/89#ifndef _GK_ARCH_H_10#define _GK_ARCH_H_1112/*************************************************************************13* Architecture-specific differences in header files14**************************************************************************/15#ifdef LINUX16#if !defined(__USE_XOPEN)17#define __USE_XOPEN18#endif19#if !defined(_XOPEN_SOURCE)20#define _XOPEN_SOURCE 60021#endif22#if !defined(__USE_XOPEN2K)23#define __USE_XOPEN2K24#endif25#endif262728#ifdef HAVE_EXECINFO_H29#include <execinfo.h>30#endif3132#ifdef __MINGW32__33#include "stdint.h"34#include "inttypes.h"35#include "sys/stat.h"36#else37#ifdef __MSC__38#include "ms_stdint.h"39#include "ms_inttypes.h"40#include "ms_stat.h"41#else42#ifndef SUNOS43#include <stdint.h>44#endif45#include <inttypes.h>46#include <sys/types.h>47#include <sys/resource.h>48#include <sys/time.h>49#endif50#endif5152/*************************************************************************53* Architecture-specific modifications54**************************************************************************/55#ifdef WIN3256typedef ptrdiff_t ssize_t;57#endif585960#ifdef SUNOS61#define PTRDIFF_MAX INT64_MAX62#endif6364#ifdef __MSC__65/* MSC does not have rint() function */66#define rint(x) ((int)((x)+0.5))6768/* MSC does not have INFINITY defined */69#ifndef INFINITY70#define INFINITY FLT_MAX71#endif72#endif7374#endif757677