test/testhotplug.c
changeset 8181 3632013330ad
parent 8180 16afd5b764b3
child 8188 47b9ab82bebf
equal deleted inserted replaced
8180:16afd5b764b3 8181:3632013330ad
   124             }
   124             }
   125         }
   125         }
   126     }
   126     }
   127 
   127 
   128     SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);
   128     SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK);
       
   129 
       
   130     return 0;
   129 }
   131 }
   130 #else
   132 #else
   131 
   133 
   132 int
   134 int
   133 main(int argc, char *argv[])
   135 main(int argc, char *argv[])
   134 {
   136 {
   135     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
   137     SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "SDL compiled without Joystick support.\n");
   136     exit(1);
   138     return 1;
   137 }
   139 }
   138 
   140 
   139 #endif
   141 #endif