Skip to content

Commit 9186bf5

Browse files
committed
Make win_gettimeofday.h work standalone
1 parent d914af6 commit 9186bf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/utils/win_gettimeofday.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef _WIN_GETTIMEOFDAY_H_
66
#define _WIN_GETTIMEOFDAY_H_
77

8+
#ifndef LIBMESH_HAVE_GETTIMEOFDAY
89
#ifdef _MSC_VER
910
#define NOMINMAX
1011
#define WIN32_LEAN_AND_MEAN
@@ -39,5 +40,6 @@ inline int gettimeofday(struct timeval * tp, struct timezone * tzp)
3940
#else // _MSC_VER
4041
#error "gettimeofday() is not implemented"
4142
#endif // _MSC_VER
43+
#endif // !LIBMESH_HAVE_GETTIMEOFDAY
4244

4345
#endif // _WIN_GETTIMEOFDAY_H_

0 commit comments

Comments
 (0)