mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-06 09:56:26 +00:00
Re-added SDL_getenv() as a thread-safe getenv() implementation
This commit is contained in:
@@ -239,7 +239,6 @@ SDL3_0.0.0 {
|
||||
SDL_GetBasePath;
|
||||
SDL_GetBooleanProperty;
|
||||
SDL_GetCPUCacheLineSize;
|
||||
SDL_GetNumLogicalCPUCores;
|
||||
SDL_GetCameraDriver;
|
||||
SDL_GetCameraFormat;
|
||||
SDL_GetCameraID;
|
||||
@@ -414,6 +413,7 @@ SDL3_0.0.0 {
|
||||
SDL_GetNumJoystickBalls;
|
||||
SDL_GetNumJoystickButtons;
|
||||
SDL_GetNumJoystickHats;
|
||||
SDL_GetNumLogicalCPUCores;
|
||||
SDL_GetNumRenderDrivers;
|
||||
SDL_GetNumVideoDrivers;
|
||||
SDL_GetNumberProperty;
|
||||
@@ -1029,6 +1029,7 @@ SDL3_0.0.0 {
|
||||
SDL_fmod;
|
||||
SDL_fmodf;
|
||||
SDL_free;
|
||||
SDL_getenv;
|
||||
SDL_getenv_unsafe;
|
||||
SDL_hid_ble_scan;
|
||||
SDL_hid_close;
|
||||
|
@@ -264,7 +264,6 @@
|
||||
#define SDL_GetBasePath SDL_GetBasePath_REAL
|
||||
#define SDL_GetBooleanProperty SDL_GetBooleanProperty_REAL
|
||||
#define SDL_GetCPUCacheLineSize SDL_GetCPUCacheLineSize_REAL
|
||||
#define SDL_GetNumLogicalCPUCores SDL_GetNumLogicalCPUCores_REAL
|
||||
#define SDL_GetCameraDriver SDL_GetCameraDriver_REAL
|
||||
#define SDL_GetCameraFormat SDL_GetCameraFormat_REAL
|
||||
#define SDL_GetCameraID SDL_GetCameraID_REAL
|
||||
@@ -439,6 +438,7 @@
|
||||
#define SDL_GetNumJoystickBalls SDL_GetNumJoystickBalls_REAL
|
||||
#define SDL_GetNumJoystickButtons SDL_GetNumJoystickButtons_REAL
|
||||
#define SDL_GetNumJoystickHats SDL_GetNumJoystickHats_REAL
|
||||
#define SDL_GetNumLogicalCPUCores SDL_GetNumLogicalCPUCores_REAL
|
||||
#define SDL_GetNumRenderDrivers SDL_GetNumRenderDrivers_REAL
|
||||
#define SDL_GetNumVideoDrivers SDL_GetNumVideoDrivers_REAL
|
||||
#define SDL_GetNumberProperty SDL_GetNumberProperty_REAL
|
||||
@@ -1054,6 +1054,7 @@
|
||||
#define SDL_fmod SDL_fmod_REAL
|
||||
#define SDL_fmodf SDL_fmodf_REAL
|
||||
#define SDL_free SDL_free_REAL
|
||||
#define SDL_getenv SDL_getenv_REAL
|
||||
#define SDL_getenv_unsafe SDL_getenv_unsafe_REAL
|
||||
#define SDL_hid_ble_scan SDL_hid_ble_scan_REAL
|
||||
#define SDL_hid_close SDL_hid_close_REAL
|
||||
|
@@ -284,7 +284,6 @@ SDL_DYNAPI_PROC(int,SDL_GetAudioStreamQueued,(SDL_AudioStream *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetBasePath,(void),(),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_GetBooleanProperty,(SDL_PropertiesID a, const char *b, SDL_bool c),(a,b,c),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetCPUCacheLineSize,(void),(),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumLogicalCPUCores,(void),(),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_GetCameraDriver,(int a),(a),return)
|
||||
SDL_DYNAPI_PROC(SDL_bool,SDL_GetCameraFormat,(SDL_Camera *a, SDL_CameraSpec *b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(SDL_CameraID,SDL_GetCameraID,(SDL_Camera *a),(a),return)
|
||||
@@ -459,6 +458,7 @@ SDL_DYNAPI_PROC(int,SDL_GetNumJoystickAxes,(SDL_Joystick *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumJoystickBalls,(SDL_Joystick *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumJoystickButtons,(SDL_Joystick *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumJoystickHats,(SDL_Joystick *a),(a),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumLogicalCPUCores,(void),(),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumRenderDrivers,(void),(),return)
|
||||
SDL_DYNAPI_PROC(int,SDL_GetNumVideoDrivers,(void),(),return)
|
||||
SDL_DYNAPI_PROC(Sint64,SDL_GetNumberProperty,(SDL_PropertiesID a, const char *b, Sint64 c),(a,b,c),return)
|
||||
@@ -1063,6 +1063,7 @@ SDL_DYNAPI_PROC(float,SDL_floorf,(float a),(a),return)
|
||||
SDL_DYNAPI_PROC(double,SDL_fmod,(double a, double b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(float,SDL_fmodf,(float a, float b),(a,b),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_free,(void *a),(a),)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_getenv,(const char *a),(a),return)
|
||||
SDL_DYNAPI_PROC(const char*,SDL_getenv_unsafe,(const char *a),(a),return)
|
||||
SDL_DYNAPI_PROC(void,SDL_hid_ble_scan,(SDL_bool a),(a),)
|
||||
SDL_DYNAPI_PROC(int,SDL_hid_close,(SDL_hid_device *a),(a),return)
|
||||
|
Reference in New Issue
Block a user