Skip to content

Commit

Permalink
[8_2] fix tm_timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Charonxin committed Aug 14, 2023
1 parent 369cb36 commit 802537b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 24 additions & 0 deletions System/Classes/tm_timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,30 @@
#ifndef TIMER_H
#define TIMER_H

#ifndef __FreeBSD__
#ifndef HAVE_TIME_T
#define HAVE_TIME_T
typedef long time_t;
#endif
#else
#include <time.h>
#endif

#ifdef OS_SUN
#include <sys/types.h>
#endif

#ifdef HAVE_GETTIMEOFDAY
#include <sys/time.h>
#else
#include <sys/timeb.h>
#ifdef OS_SUN
extern "C" {
extern int ftime __P ((struct timeb * __timebuf));
};
#endif
#endif

#include "string.hpp"
#include "tm_ostream.hpp"

Expand Down
24 changes: 0 additions & 24 deletions System/config_l1.h.xmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,6 @@ ${define OS_SUN}
typedef long intptr_t;
#endif

#ifndef __FreeBSD__
#ifndef HAVE_TIME_T
#define HAVE_TIME_T
typedef long time_t;
#endif
#else
#include <time.h>
#endif

#ifdef OS_SUN
#include <sys/types.h>
#endif

#ifdef HAVE_GETTIMEOFDAY
#include <sys/time.h>
#else
#include <sys/timeb.h>
#ifdef OS_SUN
extern "C" {
extern int ftime __P ((struct timeb * __timebuf));
};
#endif
#endif

${define SANITY_CHECKS}
${define OS_MINGW}
${define OS_WIN32}
Expand Down

0 comments on commit 802537b

Please sign in to comment.