All: Move time.h include to common.h

This commit is contained in:
Vicki Pfau 2017-01-18 15:22:41 -08:00
parent 3d113112c4
commit a56fd6016d
8 changed files with 3 additions and 17 deletions

View File

@ -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:

View File

@ -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

View File

@ -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);

View File

@ -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)

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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