You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while (alive) {
SDL_Log("Thread '%s' is alive!\n", (char *) data);
SDL_Delay(1 * 1000);
On 2017-08-21 15:16:34 +0000, Ozkan Sezer wrote:
This bug is annoying, and it shows itself in windows (and os/2) builds
when LIBC is enabled, and it is in both SDL1.2 and SDL2. Consider the
following simple test case:
#include <stdio.h>
#include "SDL.h"
long l1 = 25;
long l2 = -7;
unsigned long u = 1024;
int main (void) {
SDL_Init(0); /* bah.. */
It builds+links against both SDL1.2 and SDL2. Build, e.g. for windows.
Run with SDL.dll from SDL-1.2.15-win32-x64.zip, and it prints:
L = d
L = i
L = u
Run with an SDL2.dll from libsdl site, e.g.: SDL2-2.0.5-win32-x64.zip,
and it will print correctly: the difference is, I think, the SDL2.dll
is built with --disable-libc. (SDL_error.c clearly does not handle %l,
so how does it print correctly??)
Build on linux and run, it will print print correctly again. (magic?)
If I apply the following patch to support %ld, %li and %lu, it prints
correctly: only briefly tested, very possibly inefficient and clearly
needs review.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: All, All
Comments on the original bug report:
On 2017-08-13 10:43:40 +0000, Ozkan Sezer wrote:
On 2017-08-21 15:16:34 +0000, Ozkan Sezer wrote:
On 2017-10-28 13:16:52 +0000, Juha Niemimäki wrote:
On 2017-10-29 10:50:08 +0000, Ozkan Sezer wrote:
On 2017-10-29 11:20:41 +0000, Ozkan Sezer wrote:
On 2017-10-29 12:24:10 +0000, Juha Niemimäki wrote:
On 2018-02-15 08:20:54 +0000, Ozkan Sezer wrote:
On 2018-02-15 19:16:58 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: