All: Move time.h include to common.h
Vicki Pfau vi@endrift.com
Wed, 18 Jan 2017 15:22:41 -0800
8 files changed,
3 insertions(+),
17 deletions(-)
M
include/mgba-util/common.h
→
include/mgba-util/common.h
@@ -36,6 +36,7 @@ #endif
#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
M
include/mgba/internal/gb/memory.h
→
include/mgba/internal/gb/memory.h
@@ -14,8 +14,6 @@ #include <mgba/core/log.h>
#include <mgba/core/timing.h> #include <mgba/gb/interface.h> -#include <time.h> - mLOG_DECLARE_CATEGORY(GB_MBC); mLOG_DECLARE_CATEGORY(GB_MEM);
M
include/mgba/internal/gba/hardware.h
→
include/mgba/internal/gba/hardware.h
@@ -14,8 +14,6 @@ #include <mgba/core/log.h>
#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)
M
src/core/interface.c
→
src/core/interface.c
@@ -6,7 +6,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#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;
M
src/gb/serialize.c
→
src/gb/serialize.c
@@ -11,12 +11,6 @@ #include <mgba/internal/lr35902/lr35902.h>
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;
M
src/gba/serialize.c
→
src/gba/serialize.c
@@ -13,11 +13,6 @@ #include <mgba-util/memory.h>
#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;
M
src/util/formatting.c
→
src/util/formatting.c
@@ -6,7 +6,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#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