Browse Source

testhaptic.c: include stdlib.h for exit()

(cherry picked from commit aaf426e280f8bbfbae3111fd5d8b6d68fbcf6404)
Ozkan Sezer 1 year ago
parent
commit
4a4f289adc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      test/testhaptic.c

+ 2 - 0
test/testhaptic.c

@@ -16,6 +16,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  */
 #include "SDL.h"
 
+#include <stdlib.h>
+
 #ifndef SDL_HAPTIC_DISABLED
 
 static SDL_Haptic *haptic;