Skip to content
Closed
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
5 changes: 5 additions & 0 deletions src/platforms/rcore_android.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
*
**********************************************************************************************/

#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

#include <android_native_app_glue.h> // Required for: android_app struct and activity management
#include <android/window.h> // Required for: AWINDOW_FLAG_FULLSCREEN definition and others
//#include <android/sensor.h> // Required for: Android sensors functions (accelerometer, gyroscope, light...)
Expand Down
5 changes: 5 additions & 0 deletions src/platforms/rcore_desktop_glfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
*
**********************************************************************************************/

#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
// NOTE: Already provided by rlgl implementation (on glad.h)
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management
Expand Down
6 changes: 3 additions & 3 deletions src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
*
**********************************************************************************************/

#ifndef RAYLIB_H /* this should never actually happen, it's only here for IDEs */
#include "raylib.h"
#include "../rcore.c"
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

#if defined(PLATFORM_WEB_RGFW)
Expand Down
5 changes: 5 additions & 0 deletions src/platforms/rcore_desktop_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
*
**********************************************************************************************/

#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

#ifdef USING_SDL3_PACKAGE
#define USING_SDL3_PROJECT
#endif
Expand Down
5 changes: 5 additions & 0 deletions src/platforms/rcore_drm.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
*
**********************************************************************************************/

#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

#include <fcntl.h> // POSIX file control definitions - open(), creat(), fcntl()
#include <unistd.h> // POSIX standard function definitions - read(), close(), STDIN_FILENO
#include <termios.h> // POSIX terminal control definitions - tcgetattr(), tcsetattr()
Expand Down
4 changes: 4 additions & 0 deletions src/platforms/rcore_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
**********************************************************************************************/

// TODO: Include the platform specific libraries
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

//----------------------------------------------------------------------------------
// Types and Structures Definition
Expand Down
5 changes: 5 additions & 0 deletions src/platforms/rcore_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
*
**********************************************************************************************/

#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
// NOTE: Already provided by rlgl implementation (on glad.h)
#include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management
Expand Down
Loading