Skip to content

Commit 82b6cb2

Browse files
committed
Make win_gettimeofday.h work standalone
1 parent d914af6 commit 82b6cb2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/utils/win_gettimeofday.h

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
#ifndef _WIN_GETTIMEOFDAY_H_
66
#define _WIN_GETTIMEOFDAY_H_
77

8+
#include "libmesh/libmesh_config.h"
9+
10+
#ifndef LIBMESH_HAVE_GETTIMEOFDAY
811
#ifdef _MSC_VER
912
#define NOMINMAX
1013
#define WIN32_LEAN_AND_MEAN
@@ -39,5 +42,6 @@ inline int gettimeofday(struct timeval * tp, struct timezone * tzp)
3942
#else // _MSC_VER
4043
#error "gettimeofday() is not implemented"
4144
#endif // _MSC_VER
45+
#endif // !LIBMESH_HAVE_GETTIMEOFDAY
4246

4347
#endif // _WIN_GETTIMEOFDAY_H_

0 commit comments

Comments
 (0)