Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 68626a5

Browse files
committed
Merge commit 'ba2f78a0069118a6c583f1fbf1420144ffa35bad'
2 parents 138b288 + ba2f78a commit 68626a5

File tree

130 files changed

+663
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+663
-502
lines changed

CMakeLists.txt

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ endif()
8787
# See docs/release_checklist.md
8888
set(SDL_MAJOR_VERSION 2)
8989
set(SDL_MINOR_VERSION 30)
90-
set(SDL_MICRO_VERSION 5)
90+
set(SDL_MICRO_VERSION 6)
9191
set(SDL_VERSION "${SDL_MAJOR_VERSION}.${SDL_MINOR_VERSION}.${SDL_MICRO_VERSION}")
9292

9393
# Set defaults preventing destination file conflicts
@@ -1777,14 +1777,6 @@ elseif(WINDOWS)
17771777
list(APPEND SOURCE_FILES ${WINRT_SOURCE_FILES})
17781778
endif()
17791779

1780-
if(MSVC AND NOT SDL_LIBC)
1781-
# Prevent codegen that would use the VC runtime libraries.
1782-
set_property(DIRECTORY . APPEND PROPERTY COMPILE_OPTIONS "/GS-;/Gs1048576")
1783-
if(NOT ARCH_64 AND NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM")
1784-
set_property(DIRECTORY . APPEND PROPERTY COMPILE_OPTIONS "/arch:SSE")
1785-
endif()
1786-
endif()
1787-
17881780
if(SDL_MISC)
17891781
if(WINDOWS_STORE)
17901782
file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/winrt/*.cpp)
@@ -3527,6 +3519,20 @@ if(SDL_TEST)
35273519
set_property(TARGET SDL2_test PROPERTY INTERFACE_SDL_VERSION "SDL2")
35283520
endif()
35293521

3522+
if(MSVC AND NOT SDL_LIBC)
3523+
set(targets SDL2)
3524+
if(TARGET SDL2-static)
3525+
list(APPEND targets SDL2-static)
3526+
endif()
3527+
if(TARGET SDL2_test)
3528+
list(APPEND targets SDL2_test)
3529+
endif()
3530+
set_property(TARGET ${targets} APPEND PROPERTY COMPILE_OPTIONS "/GS-;/Gs1048576")
3531+
if(NOT ARCH_64 AND NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM")
3532+
set_property(TARGET ${targets} APPEND PROPERTY COMPILE_OPTIONS "/arch:SSE")
3533+
endif()
3534+
endif()
3535+
35303536
##### Installation targets #####
35313537
if(NOT SDL2_DISABLE_INSTALL)
35323538
if(SDL_SHARED)

Makefile.os2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
LIBNAME = SDL2
1616
MAJOR_VERSION = 2
1717
MINOR_VERSION = 30
18-
MICRO_VERSION = 5
18+
MICRO_VERSION = 6
1919
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
2020
DESCRIPTION = Simple DirectMedia Layer 2
2121

Makefile.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
LIBNAME = SDL2
77
MAJOR_VERSION = 2
88
MINOR_VERSION = 30
9-
MICRO_VERSION = 5
9+
MICRO_VERSION = 6
1010
VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION)
1111

1212
LIBHOME = .

Xcode-iOS/Demos/src/fireworks.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void spawnTrailFromEmitter(struct particle *emitter);
5252
void spawnEmitterParticle(GLfloat x, GLfloat y);
5353
void explodeEmitter(struct particle *emitter);
5454
void initializeParticles(void);
55-
void initializeTexture();
55+
void initializeTexture(void);
5656
int nextPowerOfTwo(int x);
57-
void drawParticles();
57+
void drawParticles(void);
5858
void stepParticles(double deltaTime);
5959

6060
/* helper function (used in texture loading)
@@ -159,7 +159,7 @@ stepParticles(double deltaTime)
159159
This draws all the particles shown on screen
160160
*/
161161
void
162-
drawParticles()
162+
drawParticles(void)
163163
{
164164

165165
/* draw the background */
@@ -324,7 +324,7 @@ initializeParticles(void)
324324
loads the particle texture
325325
*/
326326
void
327-
initializeTexture()
327+
initializeTexture(void)
328328
{
329329

330330
int bpp; /* texture bits per pixel */

Xcode-iOS/Demos/src/keyboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ loadFont(void)
196196
}
197197

198198
void
199-
draw()
199+
draw(void)
200200
{
201201
SDL_SetRenderDrawColor(renderer, bg_color.r, bg_color.g, bg_color.b, bg_color.a);
202202
SDL_RenderClear(renderer);

Xcode/SDL/Info-Framework.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<key>CFBundlePackageType</key>
2020
<string>FMWK</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>2.30.5</string>
22+
<string>2.30.6</string>
2323
<key>CFBundleSignature</key>
2424
<string>SDLX</string>
2525
<key>CFBundleVersion</key>
26-
<string>2.30.5</string>
26+
<string>2.30.6</string>
2727
</dict>
2828
</plist>

Xcode/SDL/SDL.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9729,7 +9729,7 @@
97299729
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
97309730
DEPLOYMENT_POSTPROCESSING = YES;
97319731
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
9732-
DYLIB_CURRENT_VERSION = 3001.5.0;
9732+
DYLIB_CURRENT_VERSION = 3001.6.0;
97339733
DYLIB_INSTALL_NAME_BASE = "@rpath";
97349734
ENABLE_STRICT_OBJC_MSGSEND = YES;
97359735
GCC_ALTIVEC_EXTENSIONS = YES;
@@ -9770,7 +9770,7 @@
97709770
isa = XCBuildConfiguration;
97719771
buildSettings = {
97729772
CLANG_LINK_OBJC_RUNTIME = NO;
9773-
MARKETING_VERSION = 2.30.5;
9773+
MARKETING_VERSION = 2.30.6;
97749774
OTHER_LDFLAGS = "-liconv";
97759775
};
97769776
name = Release;
@@ -9814,7 +9814,7 @@
98149814
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
98159815
DEBUG_INFORMATION_FORMAT = dwarf;
98169816
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
9817-
DYLIB_CURRENT_VERSION = 3001.5.0;
9817+
DYLIB_CURRENT_VERSION = 3001.6.0;
98189818
DYLIB_INSTALL_NAME_BASE = "@rpath";
98199819
ENABLE_STRICT_OBJC_MSGSEND = YES;
98209820
ENABLE_TESTABILITY = YES;
@@ -9856,7 +9856,7 @@
98569856
isa = XCBuildConfiguration;
98579857
buildSettings = {
98589858
CLANG_LINK_OBJC_RUNTIME = NO;
9859-
MARKETING_VERSION = 2.30.5;
9859+
MARKETING_VERSION = 2.30.6;
98609860
OTHER_LDFLAGS = "-liconv";
98619861
};
98629862
name = Debug;
@@ -10063,7 +10063,7 @@
1006310063
DEFINES_MODULE = YES;
1006410064
DEVELOPMENT_TEAM = "";
1006510065
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
10066-
DYLIB_CURRENT_VERSION = 3001.5.0;
10066+
DYLIB_CURRENT_VERSION = 3001.6.0;
1006710067
DYLIB_INSTALL_NAME_BASE = "@rpath";
1006810068
GCC_C_LANGUAGE_STANDARD = gnu11;
1006910069
GCC_DYNAMIC_NO_PIC = NO;
@@ -10115,7 +10115,7 @@
1011510115
DEFINES_MODULE = YES;
1011610116
DEVELOPMENT_TEAM = "";
1011710117
DYLIB_COMPATIBILITY_VERSION = 3001.0.0;
10118-
DYLIB_CURRENT_VERSION = 3001.5.0;
10118+
DYLIB_CURRENT_VERSION = 3001.6.0;
1011910119
DYLIB_INSTALL_NAME_BASE = "@rpath";
1012010120
ENABLE_NS_ASSERTIONS = NO;
1012110121
GCC_C_LANGUAGE_STANDARD = gnu11;

Xcode/SDL/pkg-support/SDL.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Title SDL 2.30.5
1+
Title SDL 2.30.6
22
Version 1
33
Description SDL Library for Mac OS X (http://www.libsdl.org)
44
DefaultLocation /Library/Frameworks

android-project/app/src/main/java/org/libsdl/app/SDLActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
6161
private static final String TAG = "SDL";
6262
private static final int SDL_MAJOR_VERSION = 2;
6363
private static final int SDL_MINOR_VERSION = 30;
64-
private static final int SDL_MICRO_VERSION = 5;
64+
private static final int SDL_MICRO_VERSION = 6;
6565
/*
6666
// Display InputType.SOURCE/CLASS of events and devices
6767
//

cmake/sdlchecks.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,12 +1352,13 @@ endmacro()
13521352

13531353
macro(CheckLibUDev)
13541354
if(SDL_LIBUDEV)
1355-
check_include_file("libudev.h" have_libudev_header)
1356-
if(have_libudev_header)
1355+
check_include_file("libudev.h" HAVE_LIBUDEV_HEADER)
1356+
if(HAVE_LIBUDEV_HEADER)
13571357
set(HAVE_LIBUDEV_H TRUE)
13581358
FindLibraryAndSONAME(udev)
13591359
if(UDEV_LIB_SONAME)
13601360
set(SDL_UDEV_DYNAMIC "\"${UDEV_LIB_SONAME}\"")
1361+
set(HAVE_LIBUDEV TRUE)
13611362
endif()
13621363
endif()
13631364
endif()

0 commit comments

Comments
 (0)