File tree Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ check_function_exists(mallinfo HAVE_MALLINFO)
48
48
#HAVE_MALLOC_H
49
49
check_include_files (malloc.h HAVE_MALLOC_H )
50
50
51
- #HAVE_SYS_TIMES_H
52
- check_include_files (sys/times.h HAVE_SYS_TIMES_H )
51
+ #SAMRAI_HAVE_SYS_TIMES_H
52
+ check_include_files (sys/times.h SAMRAI_HAVE_SYS_TIMES_H )
53
53
54
- #HAVE_UNISTD_H
55
- check_include_files (unistd.h HAVE_UNISTD_H )
54
+ #SAMRAI_HAVE_UNISTD_H
55
+ check_include_files (unistd.h SAMRAI_HAVE_UNISTD_H )
56
56
57
57
#IOMANIP_HEADER_FILE
58
58
set (IOSTREAM_HEADER_FILE "<iomanip>" )
Original file line number Diff line number Diff line change 191
191
#cmakedefine HAVE_SYS_STAT_H
192
192
193
193
/* Define to 1 if you have the <sys/times.h> header file . */
194
- #cmakedefine HAVE_SYS_TIMES_H
194
+ #cmakedefine SAMRAI_HAVE_SYS_TIMES_H
195
195
196
196
/* Define to 1 if you have the <sys/types.h> header file . */
197
197
#cmakedefine HAVE_SYS_TYPES_H
206
206
#undef HAVE_TEMPLATE_COMPLEX
207
207
208
208
/* Define to 1 if you have the <unistd.h> header file . */
209
- #cmakedefine HAVE_UNISTD_H
209
+ #cmakedefine SAMRAI_HAVE_UNISTD_H
210
210
211
211
/* HAVE_VAMPIR */
212
212
#undef HAVE_VAMPIR
Original file line number Diff line number Diff line change 15
15
namespace SAMRAI {
16
16
namespace tbox {
17
17
18
- #ifdef HAVE_SYS_TIMES_H
18
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
19
19
struct tms Clock::s_tms_buffer;
20
20
#endif
21
21
clock_t Clock::s_null_clock_t ;
Original file line number Diff line number Diff line change 19
19
#include < ctime>
20
20
#endif
21
21
22
- #ifdef HAVE_SYS_TIMES_H
22
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
23
23
#include < sys/times.h>
24
24
#endif
25
25
26
- #ifdef HAVE_UNISTD_H
26
+ #ifdef SAMRAI_HAVE_UNISTD_H
27
27
#include < unistd.h>
28
28
#endif
29
29
@@ -79,7 +79,7 @@ struct Clock {
79
79
initialize (
80
80
clock_t & clock)
81
81
{
82
- #ifdef HAVE_SYS_TIMES_H
82
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
83
83
clock = times (&s_tms_buffer);
84
84
#endif
85
85
}
@@ -105,7 +105,7 @@ struct Clock {
105
105
clock_t & sys,
106
106
double & wall)
107
107
{
108
- #ifdef HAVE_SYS_TIMES_H
108
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
109
109
s_null_clock_t = times (&s_tms_buffer);
110
110
wall = SAMRAI_MPI::Wtime ();
111
111
sys = s_tms_buffer.tms_stime ;
@@ -128,7 +128,7 @@ struct Clock {
128
128
}
129
129
130
130
private:
131
- #ifdef HAVE_SYS_TIMES_H
131
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
132
132
static struct tms s_tms_buffer;
133
133
#endif
134
134
static clock_t s_null_clock_t ;
Original file line number Diff line number Diff line change 10
10
11
11
#include " SAMRAI/tbox/SAMRAI_MPI.h"
12
12
13
- #ifdef HAVE_SYS_TIMES_H
13
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
14
14
#include < sys/times.h>
15
15
#endif
16
16
17
- #ifdef HAVE_UNISTD_H
17
+ #ifdef SAMRAI_HAVE_UNISTD_H
18
18
#include < unistd.h>
19
19
#endif
20
20
@@ -598,7 +598,7 @@ SAMRAI_MPI::Wtime()
598
598
{
599
599
double rval = 0.0 ;
600
600
if (!s_mpi_is_initialized) {
601
- #ifdef HAVE_SYS_TIMES_H
601
+ #ifdef SAMRAI_HAVE_SYS_TIMES_H
602
602
// Without MPI, use POSIX time.
603
603
struct tms tmp_tms;
604
604
clock_t clock_ticks_since_reference = times (&tmp_tms);
Original file line number Diff line number Diff line change 42
42
#define YY_FLEX_MINOR_VERSION 5
43
43
44
44
#include < stdio.h>
45
- #ifdef HAVE_UNISTD_H
45
+ #ifdef SAMRAI_HAVE_UNISTD_H
46
46
#include < unistd.h>
47
47
#endif
48
48
Original file line number Diff line number Diff line change 15
15
s / .*Date:.*// ;
16
16
s / .*Header:.*// ;
17
17
18
- s / #include <unistd.h>/ #ifdef HAVE_UNISTD_H \n #include <unistd.h>\n #endif/ ;
18
+ s / #include <unistd.h>/ #ifdef SAMRAI_HAVE_UNISTD_H \n #include <unistd.h>\n #endif/ ;
19
19
20
20
# substitution to replace [yylval] with SAMRAI_[yylval]
21
21
s / yylval/ SAMRAI_yylval/ g ;
Original file line number Diff line number Diff line change 25
25
#include <string>
26
26
#include <cstring>
27
27
28
- #ifdef HAVE_UNISTD_H
28
+ #ifdef SAMRAI_HAVE_UNISTD_H
29
29
#include <unistd.h>
30
30
#endif
31
31
You can’t perform that action at this time.
0 commit comments