X-Git-Url: https://git.ao2.it/experiments/SDL.git/blobdiff_plain/711ba7d74d03d1b9fdbe4348c9895787232999d7..refs/heads/master:/scrolling/sdl-scrolling.c?ds=sidebyside
diff --git a/scrolling/sdl-scrolling.c b/scrolling/sdl-scrolling.c
index 4f49e25..df3a2f3 100644
--- a/scrolling/sdl-scrolling.c
+++ b/scrolling/sdl-scrolling.c
@@ -17,6 +17,10 @@
* along with this program. If not, see .
*/
+#include
+#include
+#include
+#include
#include
#include
#include
@@ -70,8 +74,10 @@ int main(int argc, char *argv[])
Uint32 time_start;
Uint32 time_end;
- if (argc != 2) {
- fprintf(stderr, "usage: %s \n", argv[0]);
+ int output_fd = -1;
+
+ if (argc < 2) {
+ fprintf(stderr, "usage: %s [