• Show log

    Commit

  • Hash : 9b817248
    Author : Ozkan Sezer
    Date : 2022-02-08T18:50:02

    SDL_spinlock.c: define HAVE_GCC_ATOMICS for windows/clang builds,
    
    ... if not already defined.
    Fixes https://github.com/libsdl-org/SDL/issues/5333
    
    diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c
    index bdd347e..4f10741 100644
    --- a/src/atomic/SDL_spinlock.c
    +++ b/src/atomic/SDL_spinlock.c
    @@ -28,6 +28,12 @@
     #include "SDL_mutex.h"
     #include "SDL_timer.h"
    
    +#if defined(__WIN32__) && defined(__clang__)
    +# ifndef HAVE_GCC_ATOMICS
    +# define HAVE_GCC_ATOMICS 1
    +# endif
    +#endif
    +
     #if !defined(HAVE_GCC_ATOMICS) && defined(__SOLARIS__)
     #include <atomic.h>
     #endif
    

  • 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 www_kmx_io thodg_l thodg
    Tags