diff options
Diffstat (limited to 'c_src/sdl_cpu_info.c')
-rw-r--r-- | c_src/sdl_cpu_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c_src/sdl_cpu_info.c b/c_src/sdl_cpu_info.c index c02a358..aa034f9 100644 --- a/c_src/sdl_cpu_info.c +++ b/c_src/sdl_cpu_info.c @@ -89,10 +89,14 @@ NIF_FUNCTION(has_mmx) NIF_FUNCTION(has_neon) { +#if SDL_VERSION_ATLEAST(2, 0, 6) if (SDL_HasNEON()) return atom_true; return atom_false; +#else + return atom_undefined; +#endif } // has_rdtsc |