all repos — mgba @ f519976c7f3e3bc04236ffcb9e74a6901245caa2

mGBA Game Boy Advance Emulator

All: Attempt to downgrade from GNU99 to C99
Jeffrey Pfau jeffrey@endrift.com
Mon, 23 Mar 2015 02:03:01 -0700
commit

f519976c7f3e3bc04236ffcb9e74a6901245caa2

parent

8fad1d136c878e263fcf21772f74d66235d17a23

3 files changed, 5 insertions(+), 4 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -1,7 +1,7 @@

cmake_minimum_required(VERSION 2.6) project(mGBA C) set(BINARY_NAME mgba CACHE INTERNAL "Name of output binaries") -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=gnu99") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99") set(USE_CLI_DEBUGGER ON CACHE BOOL "Whether or not to enable the CLI-mode ARM debugger") set(USE_GDB_STUB ON CACHE BOOL "Whether or not to enable the GDB stub ARM debugger") set(USE_FFMPEG ON CACHE BOOL "Whether or not to enable FFmpeg support")

@@ -120,7 +120,8 @@ list(APPEND OS_LIB ws2_32)

file(GLOB OS_SRC ${CMAKE_SOURCE_DIR}/src/platform/windows/*.c) source_group("Windows-specific code" FILES ${OS_SRC}) else() - add_definitions(-DUSE_PTHREADS) + add_definitions(-DUSE_PTHREADS -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L) + if(NOT APPLE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread") endif()
M src/gba/hardware.csrc/gba/hardware.c

@@ -7,8 +7,6 @@ #include "hardware.h"

#include "gba/serialize.h" -#include <time.h> - static void _readPins(struct GBACartridgeHardware* hw); static void _outputPins(struct GBACartridgeHardware* hw, unsigned pins);
M src/gba/hardware.hsrc/gba/hardware.h

@@ -10,6 +10,8 @@ #include "util/common.h"

#include "macros.h" +#include <time.h> + #define IS_GPIO_REGISTER(reg) ((reg) == GPIO_REG_DATA || (reg) == GPIO_REG_DIRECTION || (reg) == GPIO_REG_CONTROL) struct GBARotationSource {