Skip to content

Commit

Permalink
Make win_gettimeofday.h work standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Dec 9, 2022
1 parent d914af6 commit 82b6cb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/utils/win_gettimeofday.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#ifndef _WIN_GETTIMEOFDAY_H_
#define _WIN_GETTIMEOFDAY_H_

#include "libmesh/libmesh_config.h"

#ifndef LIBMESH_HAVE_GETTIMEOFDAY
#ifdef _MSC_VER
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
Expand Down Expand Up @@ -39,5 +42,6 @@ inline int gettimeofday(struct timeval * tp, struct timezone * tzp)
#else // _MSC_VER
#error "gettimeofday() is not implemented"
#endif // _MSC_VER
#endif // !LIBMESH_HAVE_GETTIMEOFDAY

#endif // _WIN_GETTIMEOFDAY_H_

0 comments on commit 82b6cb2

Please sign in to comment.