mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
All: Move time.h include to common.h
This commit is contained in:
parent
3d113112c4
commit
a56fd6016d
1
CHANGES
1
CHANGES
@ -48,6 +48,7 @@ Misc:
|
||||
- VFS: Fix some minor VFile issues with FILEs
|
||||
- Core: Add generic checksum function
|
||||
- Feature: Support ImageMagick 7
|
||||
- All: Move time.h include to common.h
|
||||
|
||||
0.5.2: (2016-12-31)
|
||||
Bugfixes:
|
||||
|
@ -36,6 +36,7 @@ CXX_GUARD_START
|
||||
#ifdef _MSC_VER
|
||||
#include <Windows.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
typedef intptr_t ssize_t;
|
||||
#define PATH_MAX MAX_PATH
|
||||
#define restrict __restrict
|
||||
@ -50,6 +51,7 @@ typedef intptr_t ssize_t;
|
||||
#else
|
||||
#include <strings.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#ifndef SSIZE_MAX
|
||||
|
@ -14,8 +14,6 @@ CXX_GUARD_START
|
||||
#include <mgba/core/timing.h>
|
||||
#include <mgba/gb/interface.h>
|
||||
|
||||
#include <time.h>
|
||||
|
||||
mLOG_DECLARE_CATEGORY(GB_MBC);
|
||||
mLOG_DECLARE_CATEGORY(GB_MEM);
|
||||
|
||||
|
@ -14,8 +14,6 @@ CXX_GUARD_START
|
||||
#include <mgba/core/timing.h>
|
||||
#include <mgba/gba/interface.h>
|
||||
|
||||
#include <time.h>
|
||||
|
||||
mLOG_DECLARE_CATEGORY(GBA_HW);
|
||||
|
||||
#define IS_GPIO_REGISTER(reg) ((reg) == GPIO_REG_DATA || (reg) == GPIO_REG_DIRECTION || (reg) == GPIO_REG_CONTROL)
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include <mgba/core/interface.h>
|
||||
|
||||
#include <mgba/core/core.h>
|
||||
#include <time.h>
|
||||
|
||||
static time_t _rtcGenericCallback(struct mRTCSource* source) {
|
||||
struct mRTCGenericSource* rtc = (struct mRTCGenericSource*) source;
|
||||
|
@ -11,12 +11,6 @@
|
||||
|
||||
mLOG_DEFINE_CATEGORY(GB_STATE, "GB Savestate");
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <time.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
const uint32_t GB_SAVESTATE_MAGIC = 0x00400000;
|
||||
const uint32_t GB_SAVESTATE_VERSION = 0x00000001;
|
||||
|
||||
|
@ -13,11 +13,6 @@
|
||||
#include <mgba-util/vfs.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#ifdef _MSC_VER
|
||||
#include <time.h>
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
const uint32_t GBA_SAVESTATE_MAGIC = 0x01000000;
|
||||
const uint32_t GBA_SAVESTATE_VERSION = 0x00000002;
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include <mgba-util/formatting.h>
|
||||
|
||||
#include <float.h>
|
||||
#include <time.h>
|
||||
|
||||
int ftostr_l(char* restrict str, size_t size, float f, locale_t locale) {
|
||||
#ifdef HAVE_SNPRINTF_L
|
||||
|
Loading…
Reference in New Issue
Block a user