Skip to content

Commit

Permalink
Merge pull request #859 from SunDaw/ming-null-fix
Browse files Browse the repository at this point in the history
fix missing NULL definitions for MinGW
  • Loading branch information
RobDangerous authored Feb 17, 2024
2 parents f861f63 + 40d58ed commit 6c680d4
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/kinc/audio2/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ void kinc_a2_internal_sample_rate_callback(void);

#include <kinc/threads/mutex.h>
#include <memory.h>
#include <stddef.h>

static kinc_mutex_t mutex;

Expand Down
2 changes: 2 additions & 0 deletions Sources/kinc/graphics4/pipeline.c.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "pipeline.h"

#include <stddef.h>

void kinc_g4_internal_pipeline_set_defaults(kinc_g4_pipeline_t *state) {
for (int i = 0; i < 16; ++i)
state->input_layout[i] = NULL;
Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/acceleration.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void kinc_internal_on_acceleration(float x, float y, float z);
#ifdef KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

void (*acceleration_callback)(float /*x*/, float /*y*/, float /*z*/) = NULL;

Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/gamepad.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void kinc_internal_gamepad_trigger_button(int gamepad, int button, float value);
#ifdef KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

static void (*gamepad_axis_callback)(int /*gamepad*/, int /*axis*/, float /*value*/, void * /*userdata*/) = NULL;
static void *gamepad_axis_callback_userdata = NULL;
Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ void kinc_internal_keyboard_trigger_key_press(unsigned character);
#ifdef KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

static void (*keyboard_key_down_callback)(int /*key_code*/, void * /*data*/) = NULL;
static void *keyboard_key_down_callback_data = NULL;
Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ void kinc_internal_mouse_window_deactivated(int window);
#define KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

static void (*mouse_press_callback)(int /*window*/, int /*button*/, int /*x*/, int /*y*/, void * /*data*/) = NULL;
static void *mouse_press_callback_data = NULL;
Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/pen.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ void kinc_internal_eraser_trigger_release(int window, int x, int y, float pressu
#ifdef KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

static void (*pen_press_callback)(int /*window*/, int /*x*/, int /*y*/, float /*pressure*/) = NULL;
static void (*pen_move_callback)(int /*window*/, int /*x*/, int /*y*/, float /*pressure*/) = NULL;
Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/rotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ void kinc_internal_on_rotation(float x, float y, float z);
#ifdef KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

static void (*rotation_callback)(float /*x*/, float /*y*/, float /*z*/) = NULL;

Expand Down
1 change: 1 addition & 0 deletions Sources/kinc/input/surface.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void kinc_internal_surface_trigger_touch_end(int index, int x, int y);
#ifdef KINC_IMPLEMENTATION

#include <memory.h>
#include <stddef.h>

static void (*surface_touch_start_callback)(int /*index*/, int /*x*/, int /*y*/) = NULL;
static void (*surface_move_callback)(int /*index*/, int /*x*/, int /*y*/) = NULL;
Expand Down

0 comments on commit 6c680d4

Please sign in to comment.