Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing NULL definitions for MinGW #859

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading