[Commits] SDL: haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku.

libsdl.org revision control commits-owner at libsdl.org
Tue Aug 8 22:02:05 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/714324c6dd1f
changeset: 11199:714324c6dd1f
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Wed Aug 09 01:01:41 2017 -0400
description:
haiku: Patched SDL_bopengl.cc to compile on x86-64 Haiku.

Fixes Bugzilla #3729.

diffstat:

 src/video/haiku/SDL_bopengl.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2b4146f70a85 -r 714324c6dd1f src/video/haiku/SDL_bopengl.cc
--- a/src/video/haiku/SDL_bopengl.cc	Wed Aug 09 00:56:05 2017 -0400
+++ b/src/video/haiku/SDL_bopengl.cc	Wed Aug 09 01:01:41 2017 -0400
@@ -54,7 +54,7 @@
         if( get_image_symbol(info.id, "glBegin", B_SYMBOL_TYPE_ANY,
                 &location) == B_OK) {
 
-            _this->gl_config.dll_handle = (void *) info.id;
+            _this->gl_config.dll_handle = (void *) (size_t) info.id;
             _this->gl_config.driver_loaded = 1;
             SDL_strlcpy(_this->gl_config.driver_path, "libGL.so",
                     SDL_arraysize(_this->gl_config.driver_path));
@@ -69,7 +69,7 @@
         void *location = NULL;
         status_t err;
         if ((err =
-            get_image_symbol((image_id) _this->gl_config.dll_handle,
+            get_image_symbol((image_id) (size_t) _this->gl_config.dll_handle,
                               proc, B_SYMBOL_TYPE_ANY,
                               &location)) == B_OK) {
             return location;


More information about the commits mailing list