all repos — mgba @ a56fd6016ddd862bcfd22f4378019176d84a80bf

mGBA Game Boy Advance Emulator

All: Move time.h include to common.h
Vicki Pfau vi@endrift.com
Wed, 18 Jan 2017 15:22:41 -0800
commit

a56fd6016ddd862bcfd22f4378019176d84a80bf

parent

3d113112c48006681f7df1d107517533c29fb97e

M CHANGESCHANGES

@@ -48,6 +48,7 @@ - GB Audio: Start implementing "zombie" audio (fixes mgba.io/i/389)

- 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:
M include/mgba-util/common.hinclude/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.hinclude/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.hinclude/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.csrc/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.csrc/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.csrc/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.csrc/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