SDL/include
Sam Lantinga 316ff3847b Fixed bug 4526 - replace SDL_RW* macros with functions for using in bindings
ace

I got this bug in SDL_ttf:
https://bugzilla.libsdl.org/show_bug.cgi?id=4524
Sylvain proposed solution:
SDL_RWseek(RWops, 0, RW_SEEK_SET);

And it works, but i can use it my project, because it written in C# with SDL2-CS wrapper and there not export for macroses:
#define SDL_RWsize(ctx)         (ctx)->size(ctx)
#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset, whence)
#define SDL_RWtell(ctx)         (ctx)->seek(ctx, 0, RW_SEEK_CUR)
#define SDL_RWread(ctx, ptr, size, n)   (ctx)->read(ctx, ptr, size, n)
#define SDL_RWwrite(ctx, ptr, size, n)  (ctx)->write(ctx, ptr, size, n)
#define SDL_RWclose(ctx)        (ctx)->close(ctx)

Therefore, I suggest replacing this macros with functions so that they can be exported and used in bindings
2019-06-08 17:43:23 -07:00
..
SDL.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_assert.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_atomic.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_audio.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_bits.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blendmode.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_clipboard.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config.h.cmake Use _Exit() when available 2019-04-23 07:59:31 -07:00
SDL_config.h.in Use _Exit() when available 2019-04-23 07:59:31 -07:00
SDL_config_android.h Initial Android OpenSL ES implementation, contributed by ANTA 2019-01-12 12:18:44 -08:00
SDL_config_iphoneos.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_macosx.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_minimal.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_os2.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_pandora.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_psp.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_windows.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_winrt.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_config_wiz.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_copying.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_cpuinfo.h Fixed bug 4557 - SDL_SIMDAlloc and *Free should be in the public interface 2019-06-08 14:54:37 -07:00
SDL_egl.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_endian.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_error.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_events.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_filesystem.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_gamecontroller.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_gesture.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_haptic.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_hints.h Set SDL_HINT_MOUSE_TOUCH_EVENTS for iPhone and iPad as well 2019-04-05 08:10:12 -07:00
SDL_joystick.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_keyboard.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_keycode.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_loadso.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_log.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_main.h Fixed building with C++ 2019-03-19 10:59:41 -07:00
SDL_messagebox.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_mouse.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_mutex.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_name.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_opengl.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_opengl_glext.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_opengles2.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_opengles2_gl2.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2ext.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2platform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_khrplatform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_pixels.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_platform.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_power.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_quit.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_rect.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_render.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_revision.h revert files I didnt mean to commit! 2017-09-29 10:15:44 -07:00
SDL_rwops.h Fixed bug 4526 - replace SDL_RW* macros with functions for using in bindings 2019-06-08 17:43:23 -07:00
SDL_scancode.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_sensor.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_shape.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_stdinc.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_surface.h Rename surface aligned memory flag to SDL_SIMD_ALIGNED 2019-02-04 08:34:24 +01:00
SDL_system.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_syswm.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_assert.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_common.h test: unify all the command line usage logging. 2019-05-28 17:39:13 -04:00
SDL_test_compare.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_crc32.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_font.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_fuzzer.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_harness.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_images.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_log.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_md5.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_memory.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_test_random.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_thread.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_timer.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_touch.h Add hint SDL_HINT_MOUSE_TOUCH_EVENTS for mouse events to generate touch events 2019-04-04 16:51:50 +02:00
SDL_types.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_version.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_video.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_vulkan.h vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window. 2018-08-24 09:49:48 -04:00
begin_code.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
close_code.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00