~ubuntu-branches/ubuntu/warty/petsc/warty

« back to all changes in this revision

Viewing changes to bmake/ascired/petscfix.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2002-06-18 19:09:33 UTC
  • Revision ID: james.westby@ubuntu.com-20020618190933-jw8yo0g8jbeq8s3w
Tags: upstream-2.1.3
ImportĀ upstreamĀ versionĀ 2.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*$Id: petscfix.h,v 1.100 2000/01/11 20:57:57 bsmith Exp $*/
 
2
 
 
3
/*
 
4
    This fixes various things in system files that are incomplete, for 
 
5
  instance many systems don't properly prototype all system functions.
 
6
  It is not intended to DUPLICATE anything in the system include files;
 
7
  if the compiler reports a conflict between a prototye in a system file
 
8
  and this file then the prototype in this file should be removed.
 
9
 
 
10
    This is included by files in src/sys/src
 
11
*/
 
12
 
 
13
#if !defined(_PETSCFIX_H)
 
14
#define _PETSCFIX_H
 
15
 
 
16
#include "petsc.h"
 
17
 
 
18
/*
 
19
  This prototype lets us resolve the datastructure 'rusage' only in
 
20
  the source files using getrusage, and not in other source files.
 
21
*/
 
22
typedef struct rusage* s_rusage;
 
23
 
 
24
/* ------------------ ASCI Red --------------------------------*/
 
25
#if defined(__cplusplus)
 
26
extern "C" {
 
27
extern char *getwd(char *_name);
 
28
}
 
29
#else
 
30
extern char *getwd(char *_name);
 
31
#endif
 
32
 
 
33
#define MPI_Comm_f2c(a)  (a)
 
34
#define MPI_Comm_c2f(a)  (int)(a)
 
35
typedef  int MPI_Fint;
 
36
 
 
37
#endif
 
38