Commits

Marcus von Appen  committed 08f1c88

- fixed issue #53: preserve backwards compatibility with SDL < 2.0.1 by adding
a nullfunc handler for SDL_HasAVX()

  • Participants
  • Parent commits 9119dd3

Comments (0)

Files changed (1)

File sdl2/cpuinfo.py

 SDL_HasSSE41 = _bind("SDL_HasSSE41", None, SDL_bool)
 SDL_HasSSE42 = _bind("SDL_HasSSE42", None, SDL_bool)
 SDL_GetSystemRAM = _bind("SDL_GetSystemRAM", None, c_int, nullfunc)
-SDL_HasAVX = _bind("SDL_HasAVX", None, SDL_bool)
+SDL_HasAVX = _bind("SDL_HasAVX", None, SDL_bool, nullfunc)