Ozkan Sezer
d27238751f
os2: integrate the port into main tree.
2020-10-14 23:01:06 +03:00
Ozkan Sezer
20db1471e5
added documentation docs/README-os2.md (based on original readme.os2).
2020-10-14 23:01:06 +03:00
Ozkan Sezer
5807cb3d31
os2: remove dependency to gradd.h from IBM's ddk which is non-free:
...
Add a minimal my_gradd.h containing structures and constants only used
by SDL_os2vman.c -- based on public knowledge from around the internet
including pages from http://www.osfree.org and http://www.edm2.com .
2020-10-14 23:01:06 +03:00
Ozkan Sezer
b6965a1774
os2: Andrey Vasilkin agreed that his code to be put under Zlib license:
...
add SDL license headers to geniconv sources.
2020-10-14 23:01:05 +03:00
Ozkan Sezer
1d9cf23e4c
os2: updated copyright dates for 2020. header guard fixes.
2020-10-14 23:01:05 +03:00
Ozkan Sezer
a3d7913c07
SDL_os2audio.c (OS2_OpenDevice): change spec->samples assignment:
...
Original code assigned MCIMixSetup.ulSamplesPerSec value to it, but it
is just the freq... We now change spec->samples only either if it is 0
or we changed the frequency, by picking a default of ~46 ms at desired
frequency (code taken from SDL_audio.c:prepare_audiospec()).
With this, the crashes I have been experiencing are gone.
2020-10-14 23:01:05 +03:00
Ozkan Sezer
e112b776fc
SDL_os2audio.c (OS2_OpenDevice): change {0} initializers to SDL_zero()
2020-10-14 23:01:05 +03:00
Ozkan Sezer
72594e255a
SDL_os2audio.c (OS2_OpenDevice): remove assignment to wrong spec member
...
Correct assignment to 'format' member is done below, already.
2020-10-14 23:01:04 +03:00
Ozkan Sezer
fe2cc8d86c
OS2_VideoQuit(): avoid double free()ing of displays.
...
Our caller SDL_VideoQuit() already frees display_modes, driverdata, etc.
Noticed in bitwiseworks' version at https://github.com/bitwiseworks/SDL2-os2
2020-10-14 23:01:04 +03:00
Ozkan Sezer
fba32ee21f
OS2_VideoInit: zero the stSDLDisplay and stSDLDisplayMode variables
...
Fixes testdisplayinfo.exe crashing in SDL2-2.0.13. (How it did work before?..)
2020-10-14 23:01:04 +03:00
Ozkan Sezer
54ced668c4
port from 2.0.12 to 2.0.13 / current SDL-hg repository.
...
- video: VideoBootStrap->available() is gone.
- thread: all important SDL_CreateThread internal data now put into
struct SDL_Thread: changes to SDL_SYS_CreateThread().
2020-10-14 23:01:04 +03:00
Ozkan Sezer
5da796fe52
os/2: port from SDL2-2.0.5 to SDL2-2.0.12
...
- events / video: SDL_SetDoubleClickTime() removed -- functionality
moved to SDL_mouse.c:SDL_MouseDoubleClickTimeChanged().
- video: struct SDL_VideoDevice-> CreateWindow and CreateWindowFrom
members renamed to CreateSDLWindow and CreateSDLWindowFrom
2020-10-14 23:01:03 +03:00
Ozkan Sezer
5d89217f6b
os2/SDL_sysfilesystem.c: fix crash if one of the parameters is NULL
...
Has been happening with testfilesystem from 2.0.6 and newer because
of commit 572a721879ef.
Also set error strings in certain error conditions.
Also applied coding style / whitespace fixes, while I was there.
2020-10-14 23:01:03 +03:00
Ozkan Sezer
222f026899
os/2: port from SDL2-2.0.4 to SDL2-2.0.5:
...
changes to SDL_os2audio.c, SDL_os2video.c, os2/SDL_systhread.c in order
to accomodate SDL2-2.0.5 changes.
- audio: WaitDone() is gone, CloseDevice() interface changes.
- events / video: DropFile() changes:
SDL_DROPBEGIN and SDL_DROPCOMPLETE events, window IDs for drops.
- thread: struct SDL_Thread->stacksize
2020-10-14 23:01:03 +03:00
Ozkan Sezer
5f3f67b16b
os2/SDL_sysfilesystem.c: use OS/2 api DosCreateDir() instead of mkdir().
...
mkdir() from watcom and emx differ - the latter being unix-ish, so this
change avoids ifdefs.
2020-10-14 23:01:03 +03:00
Ozkan Sezer
4551c63372
os2: make testnative working -- imported from bitwiseworks' fork:
...
https://github.com/bitwiseworks/SDL2-os2/commit/e2abc76b24c795051d0092cbd425544e73a0713e
2020-10-14 23:01:02 +03:00
Ozkan Sezer
1b99d805db
os2: updates from Andrey Vasilkin's 2020-09-07 sources.
2020-10-14 23:01:02 +03:00
Ozkan Sezer
aa790837eb
os2: several warning fixes.
...
mostly those "W007: '&array' may not produce intended result" warnings
from Watcom, visible only in C++ mode. one or two others here & there.
2020-10-14 23:01:02 +03:00
Ozkan Sezer
f9af19f51d
os2: updates to SDL_systhread.c:
...
removed lots of garbage. added SDL_PASSED_BEGINTHREAD_ENDTHREAD guard,
because the code requires it.
2020-10-14 23:01:02 +03:00
Ozkan Sezer
c218861946
os2: added a 2-byte padding to os2 SDL_PrivateAudioData
2020-10-14 23:01:01 +03:00
Ozkan Sezer
d1323eb0a9
os2: better error reporting from loadso
2020-10-14 23:01:01 +03:00
Ozkan Sezer
861ac81b37
os2: changes to debug macros
2020-10-14 23:01:01 +03:00
Ozkan Sezer
110a0f7bb1
os2: update include paths. add missing libc includes to geniconv.
2020-10-14 23:01:01 +03:00
Ozkan Sezer
74cfb81dbb
os2: add port files for SDL2-2.0.4 from Andrey Vasilkin
...
only geniconv/iconv.h (was from LGPL libiconv) is replaced with a generic
minimal iconv.h based on public knowledge.
2020-10-14 23:01:00 +03:00
Ozkan Sezer
93e1449764
SDL_waylanddatamanager.c (mime_data_list_add): constify the buffer param
...
Fixes -Wdiscarded-qualifiers warnings from Wayland_data_source_add_data()
2020-10-14 15:50:04 +03:00
Ozkan Sezer
2daa670ce8
cmake: look for iconv in libc, too (bug #5316.)
2020-10-13 15:20:03 +03:00
Ozkan Sezer
6756851836
cmake: run updaterev.sh if(NOT CMAKE_HOST_WIN32)
...
... not if(NOT WINDOWS OR CYGWIN)
This way, it generates SDL_revision.h in cross-build environments too.
2020-10-13 14:45:10 +03:00
Ozkan Sezer
665cfa4981
cmake: check for alloca() in stdlib.h and malloc.h, too (bug #5316 )
2020-10-13 14:32:15 +03:00
Ozkan Sezer
fc795f89d3
SDL_cpuinfo.h: add missing const to size parameter of SDL_SIMDRealloc()
...
so that the declaration matches the definition.
2020-10-13 05:20:00 +03:00
Ozkan Sezer
af06a60a9d
Makefile.os2: remove some unnecessary stuff.
2020-10-13 00:33:56 +03:00
Ozkan Sezer
48c03d9a75
cmake: reduce STDC_HEADER_NAMES list to only relevant headers,
...
i.e. stddef.h, stdarg.h, stdlib.h, string.h, stdio.h, wchar.h, float.h.
Fixes issue described at:
https://bugzilla.libsdl.org/show_bug.cgi?id=4885#c2
2020-10-12 02:40:00 +03:00
Ozkan Sezer
196cda69f2
build: fix / update sensors (windows) configuration
...
- SDL_config.h.in: add missing defines SDL_SENSOR_COREMOTION
and SDL_SENSOR_WINDOWS (configure did set SDL_SENSOR_WINDOWS
but it never went in SDL_config.h or Makefile.)
- SDL_config.h.cmake: remove duplicated SDL_SENSOR_XXX cmake
defines.
- autofoo, cmake: check for sensorsapi.h header before enabling
windows sensors.
2020-10-12 01:02:28 +03:00
Ozkan Sezer
10eb5108b6
test/Makefile.os2: add testlocale.exe to build.
2020-10-11 20:00:20 +03:00
Ozkan Sezer
34a82fca49
SDL_cpuinfo.c (OS2): undefine HAVE_SYSCTLBYNAME
2020-10-10 20:50:02 +03:00
Ozkan Sezer
5d42ad9eab
Makefile.os2: minor re-order.
2020-10-10 03:00:04 +03:00
Ozkan Sezer
7991cc38bc
dynapi: move SDL_SIMDRealloc down below, after SDL_GetPreferredLocales.
...
https://hg.libsdl.org/SDL/rev/884cb29cb80e wrongly added it after its
family i.e. SDL_SIMDAlloc, not at the end of the list.
2020-10-09 21:40:28 +03:00
Ozkan Sezer
05438b28e0
minor tidy-up to Makefile.os2
2020-10-09 04:28:00 +03:00
Ozkan Sezer
19aaa2944d
Fix https://bugzilla.libsdl.org/show_bug.cgi?id=5306
...
(Also see: https://bugzilla.libsdl.org/show_bug.cgi?id=4822 )
Building the current tree against 10.8 SDK, clang emits the following warning:
src/video/cocoa/SDL_cocoawindow.m:1846:27: warning: instance method '-isOperatingSystemAtLeastVersion:' not found (return type defaults to 'id') [-Wobjc-method-access]
![processInfo isOperatingSystemAtLeastVersion:version]) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h:20:12: note: receiver is instance of class declared here
@interface NSProcessInfo : NSObject {
^
1 warning generated.
isOperatingSystemAtLeastVersion is an 10.10 thing.
2020-10-09 04:00:00 +03:00
Ozkan Sezer
69fbd60d25
Fix https://bugzilla.libsdl.org/show_bug.cgi?id=4877#c2
...
loadNibNamed:owner:topLevelObjects is available on 10.8 and newer.
There is an issue report here about an app failing to function on
10.7 and earlier: https://discourse.libsdl.org/t/28179
2020-10-09 04:00:00 +03:00
Ozkan Sezer
e58cc5fa0e
minor whitespace fix
2020-10-09 03:28:30 +03:00
Ozkan Sezer
d86a746542
SDL_video.c: fix whitespace
2020-10-09 02:55:00 +03:00
Ozkan Sezer
3aa418f451
SDL_video.h (SDL_DisplayEventID): remove comma at end of enumerator list
2020-10-09 02:50:15 +03:00
Ozkan Sezer
54bb9aaccb
k_rem_pio2.c: fix typo in second memset(): iq, not q. fixes bug #5309 .
2020-10-08 11:51:02 +03:00
Ozkan Sezer
1f4b5d54ca
windows/SDL_syslocale.c: make it build against older SDKs.
2020-10-06 00:20:20 +03:00
Ozkan Sezer
66d847bd5c
url: Patched to compile on OS/2.
2020-10-05 21:30:00 +03:00
Ozkan Sezer
883509fc84
ran gendynapi.pl after new (android-only) api additions.
2020-10-01 17:01:00 +03:00
Ozkan Sezer
ebfc98377b
ac_check_define.m4: remove stray AC_DEFINE outside of the macro definition
...
cf.: bug #5234 -- generated configure script does not change.
2020-09-16 22:20:02 +03:00
Ozkan Sezer
3544bd9e78
ac_check_define.m4: AC_REQUIRE([AC_PROG_CPP]) -- fixes bug #5234 .
2020-09-16 08:00:20 +03:00
Ozkan Sezer
49ec65587a
fix bug #5228 -- Add AltiVec detection for FreeBSD.
...
thanks Piotr Kubaj.
2020-07-11 08:10:02 +03:00
Ozkan Sezer
fe97f01bc6
configure: corretly print --enable-arm-simd default value.
2020-07-05 22:33:10 +03:00
Ozkan Sezer
4ba0a84718
core/linux/SDL_threadprio.c: fix build against older glibc versions
2020-06-22 23:24:02 +03:00
Ozkan Sezer
9db16a6557
fix permissions of some project files
2020-06-14 12:21:02 +03:00
Ozkan Sezer
163896543f
fix watcom build of SDL_test_common.c
2020-06-14 12:05:56 +03:00
Ozkan Sezer
9340cfa9a1
SDL_x11events.c (X11_DispatchEvent): remove FIXME and use SDL_strtokr().
2019-12-27 23:01:10 +03:00
Ozkan Sezer
ef3ca2cc46
Fix build error in SDL_render_metal.m (bug #4916.)
...
Patch provided by Konrad. Error was introduced by commit 522164980828 for bug #4914 .
2019-12-23 19:55:10 +03:00
Ozkan Sezer
9996d1bb71
fix xcode project file permissions
2019-12-20 14:33:37 +03:00
Ozkan Sezer
0d0ec5fe52
CMakeLists.txt: sync DYLIB_CURRENT_VERSION to Xcode project
2019-11-26 20:41:00 +03:00
Ozkan Sezer
6fc3886441
SDL_gamecontroller.h: remove comma at end of enumerator list
2019-11-23 03:28:02 +03:00
Ozkan Sezer
b8d325c830
fix xcode project file permissions
2019-11-21 23:04:20 +03:00
Ozkan Sezer
405a3c821b
ran gendynapi.pl after newly added SDL_string.c functions.
2019-11-21 11:50:50 +03:00
Ozkan Sezer
f7df146d15
updated os/2 config file
2019-11-21 11:33:50 +03:00
Ozkan Sezer
8cdb4526d9
CMakeLists.txt: add several missing function checks for unix case.
2019-11-21 10:33:56 +03:00
Ozkan Sezer
d3232a82a0
configure: add back mistakenly removed strtok_r check, and regenerate.
2019-11-21 10:02:02 +03:00
Ozkan Sezer
eb8f14bb6a
added SDL_strtokr() as a replacement for POSIX strtok_r (bug #4046.)
2019-11-20 20:40:50 +03:00
Ozkan Sezer
200d37dabb
SDL.c (SDL_ExitProcess): unconstify its param to match its declaration.
2019-11-20 02:47:40 +03:00
Ozkan Sezer
a365c7f6fb
ran gendynapi.pl after SDL_HasARMSIMD() addition
2019-11-04 11:15:24 +03:00
Ozkan Sezer
fea3c8bdef
SDL_qsort.c: sync comments with version 1.15 from mainstream
2019-10-31 17:10:02 +03:00
Ozkan Sezer
9530ccba0f
SDL_endian.h: Use endian.h for OpenBSD.
...
Patch from OpenBSD CVS, authored by Donovan Watteau.
2019-10-21 22:22:28 +03:00
Ozkan Sezer
7c7801f166
Fix typo with __MIPSEB__ preprocessor check (bug #4836.)
...
Patch from Simon Howard
2019-10-21 10:20:25 +03:00
Ozkan Sezer
9c14c789ad
updated includes for _exit()
2019-10-18 23:10:00 +03:00
Ozkan Sezer
ffc7d09197
endpointvolume.h checks not needed since changeset 13078:8ab094a9df6b .
2019-10-01 14:00:02 +03:00
Ozkan Sezer
a664e95d65
dynapi: move new SDL_LockTextureToSurface addition to the end of file.
2019-10-01 00:05:50 +03:00
Ozkan Sezer
a74d33b796
SDL_messagebox.h: remove comma at end of enumerator list
2019-09-22 21:41:20 +03:00
Ozkan Sezer
213de48887
update version number in Makefile.os2 too
2019-09-22 20:47:00 +03:00
Ozkan Sezer
32bb8b4b40
test: replace some exit()s with returns.
2019-09-10 10:03:20 +03:00
Ozkan Sezer
8a394209c4
SDL_windowsevents.c: remove isVistaOrNewer (not used since 8cb1dc50bb28)
2019-09-05 20:47:20 +03:00
Ozkan Sezer
51df932efb
fix permissions
2019-09-05 13:21:02 +03:00
Ozkan Sezer
b21338eb54
SDL_bmp.c: restore most of the original formatting.
2019-09-02 12:35:00 +03:00
Ozkan Sezer
9c8e403f6b
use 'U' suffix on constants instead of (unsigned int) cast.
2019-08-30 11:35:20 +03:00
Ozkan Sezer
1e47790c8d
RPI_FreeCursor: set global_cursor to NULL to prevent double-free (bug 4769)
2019-08-26 18:41:40 +03:00
Ozkan Sezer
7d6f7e8d34
fix permissions
2019-08-23 03:01:10 +03:00
Ozkan Sezer
7f5fc74c57
fix permissions
2019-08-08 23:35:02 +03:00
Ozkan Sezer
6f8910e398
minor warning fixes.
2019-08-04 14:56:02 +03:00
Ozkan Sezer
42e4219c1a
fix permissions
2019-08-03 12:50:28 +03:00
Ozkan Sezer
edc158894c
remove test/aclocal.m4
2019-08-03 12:49:50 +03:00
Ozkan Sezer
59ea0735f0
configury: allow libusb-less hidapi for macosx.
2019-08-01 17:41:40 +03:00
Ozkan Sezer
c37c6cbbca
use WIN_IsWindowsVistaOrGreater() from core/windows for isVistaOrNewer
2019-07-31 23:37:02 +03:00
Ozkan Sezer
1b7fc81e3f
minor whitespace tidy-up.
2019-07-31 19:40:50 +03:00
Ozkan Sezer
4953e050f5
use SDL_zeroa at more places where the argument is an array.
2019-07-31 05:11:40 +03:00
Ozkan Sezer
7a47c292c0
Fix bug 4746 - introduce SDL_zeroa macro.
2019-07-31 01:22:02 +03:00
Ozkan Sezer
f96d7cc0fd
minor build fix.
2019-07-31 01:19:26 +03:00
Ozkan Sezer
fdc67c3c60
MS_ADPCM_Decode: fix assigning an array to a pointer (lose '&').
2019-07-31 00:10:00 +03:00
Ozkan Sezer
2ea0ec6207
better readability..
2019-07-31 00:07:15 +03:00
Ozkan Sezer
5f04ed5fbd
SDL_iconv_string: add (char*) casts before SDL_malloc() calls.
2019-07-31 00:06:50 +03:00
Ozkan Sezer
ceee7def84
minor build fixes.
2019-07-31 00:05:28 +03:00
Ozkan Sezer
d550867aef
fix permissions
2019-07-09 08:55:00 +03:00
Ozkan Sezer
282b2b9395
define __ARM_NEON for Windows only if _M_ARM or _M_ARM64 is defined. fixes Visual Studio builds.
2019-06-25 11:47:02 +03:00
Ozkan Sezer
83a713f1a0
update version in os/2 makefile
2019-06-24 23:51:10 +03:00
Ozkan Sezer
bcb357d451
fix permissions
2019-06-24 23:50:20 +03:00
Ozkan Sezer
09142eb715
fix permissions
2019-06-12 13:56:20 +03:00