mirror of https://github.com/odrling/Aegisub
Add configure check for sys/time.h
Originally committed to SVN as r4529.
This commit is contained in:
parent
d6b68dfb25
commit
61138e9b5d
|
@ -341,6 +341,8 @@ AX_OPENMP([], [with_openmp="no"])
|
|||
AM_CONDITIONAL([HAVE_OPENMP], [test "$with_openmp" != "no"])
|
||||
AC_SUBST(OPENMP_CXXFLAGS)
|
||||
|
||||
AC_CHECK_HEADERS([sys/time.h])
|
||||
|
||||
|
||||
##############################
|
||||
# Program Support and Features
|
||||
|
|
|
@ -19,17 +19,15 @@
|
|||
/// @ingroup libaegisub
|
||||
|
||||
#ifndef LAGI_PRE
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
#endif // LAGI_PRE
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <time.h>
|
||||
|
||||
#else // Unix / OSX
|
||||
#include <sys/time.h>
|
||||
|
||||
#endif // if _WIN32
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace agi {
|
||||
|
|
|
@ -8,8 +8,11 @@
|
|||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
# include <time.h>
|
||||
#endif
|
||||
|
||||
// Windows C
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Reference in New Issue