• Show log

    Commit

  • Hash : 68d7be39
    Author : Sam Lantinga
    Date : 2016-12-06T00:40:09

    Fixed bug 3508 - variably modified ?SDL_dummy_size? at file scope in test/testatomic.c
    
    Ciro Santilli
    
    GCC 6, Ubuntu 16.10, cd test; ./configure; make
    
    /bin/sh config.status Makefile
    config.status: creating Makefile
    gcc -o loopwave loopwave.c -g -O2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGLES2 -DHAVE_OPENGL -DHAVE_SDL_TTF -g -lSDL2_test -lSDL2
    gcc -o testatomic testatomic.c -g -O2 -D_REENTRANT -I/usr/include/SDL2 -DHAVE_OPENGLES2 -DHAVE_OPENGL -DHAVE_SDL_TTF -g -lSDL2_test -lSDL2
    In file included from /usr/include/SDL2/SDL_main.h:25:0,
                     from /usr/include/SDL2/SDL.h:32,
                     from testatomic.c:14:
    /usr/include/SDL2/SDL_stdinc.h:261:20: error: variably modified ?SDL_dummy_size? at file scope
            typedef int SDL_dummy_ ## name[(x) * 2 - 1]
                        ^
    testatomic.c:106:1: note: in expansion of macro ?SDL_COMPILE_TIME_ASSERT?
     SDL_COMPILE_TIME_ASSERT(size, CountTo>0); /* check for rollover */
     ^~~~~~~~~~~~~~~~~~~~~~~
    Makefile:114: recipe for target 'testatomic' failed
    make: *** [testatomic] Error 1
    
    If I remove the line SDL_COMPILE_TIME_ASSERT(size, CountTo>0); /* check for rollover */ it works, lazy to figure out the best way to do this.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags

  • README.txt

  •                          Simple DirectMedia Layer
    
                                      (SDL)
    
                                    Version 2.0
    
    ---
    http://www.libsdl.org/
    
    Simple DirectMedia Layer is a cross-platform development library designed
    to provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog
    and many Humble Bundle games.
    
    More extensive documentation is available in the docs directory, starting
    with README.md
    
    Enjoy!
    	Sam Lantinga				(slouken@libsdl.org)