From ca9b26490514b4e447d2a5cd5ed2e9c9ff1a61d2 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 19 Nov 2007 14:41:30 +0000 Subject: [PATCH] Fixed file_size/file_size_ex depending the Allegro version --- src/commands/cmd_about.c | 2 +- src/core/config.c | 2 +- src/file/gif/format.c | 2 +- src/util/col_file.c | 2 +- src/util/msk_file.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/cmd_about.c b/src/commands/cmd_about.c index c3ca4ff9c..cf8f98f31 100644 --- a/src/commands/cmd_about.c +++ b/src/commands/cmd_about.c @@ -106,7 +106,7 @@ static char *read_authors_txt(const char *filename) int size; FILE *f; -#if (MAKE_VERSION(4, 2, 0) < MAKE_VERSION(ALLEGRO_VERSION, \ +#if (MAKE_VERSION(4, 2, 1) < MAKE_VERSION(ALLEGRO_VERSION, \ ALLEGRO_SUB_VERSION, \ ALLEGRO_WIP_VERSION)) size = file_size(dir->path); diff --git a/src/core/config.c b/src/core/config.c index 81229a2b4..03104ab17 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -456,7 +456,7 @@ static void load_config_file(CONFIG **config, AL_CONST char *filename, AL_CONST return; } -#if (MAKE_VERSION(4, 2, 0) < MAKE_VERSION(ALLEGRO_VERSION, \ +#if (MAKE_VERSION(4, 2, 1) < MAKE_VERSION(ALLEGRO_VERSION, \ ALLEGRO_SUB_VERSION, \ ALLEGRO_WIP_VERSION)) length = file_size(filename); diff --git a/src/file/gif/format.c b/src/file/gif/format.c index e85eac15e..0d6b59c97 100644 --- a/src/file/gif/format.c +++ b/src/file/gif/format.c @@ -392,7 +392,7 @@ gif_load_animation (const char *filename, void (*progress) (int)) { PACKFILE *file; GIF_ANIMATION *gif = NULL; -#if (MAKE_VERSION(4, 2, 0) < MAKE_VERSION(ALLEGRO_VERSION, \ +#if (MAKE_VERSION(4, 2, 1) < MAKE_VERSION(ALLEGRO_VERSION, \ ALLEGRO_SUB_VERSION, \ ALLEGRO_WIP_VERSION)) int size = file_size(filename); diff --git a/src/util/col_file.c b/src/util/col_file.c index 45908f281..468a3f444 100644 --- a/src/util/col_file.c +++ b/src/util/col_file.c @@ -29,7 +29,7 @@ /* loads a COL file (Animator and Animator Pro format) */ RGB *load_col_file(const char *filename) { -#if (MAKE_VERSION(4, 2, 0) < MAKE_VERSION(ALLEGRO_VERSION, \ +#if (MAKE_VERSION(4, 2, 1) < MAKE_VERSION(ALLEGRO_VERSION, \ ALLEGRO_SUB_VERSION, \ ALLEGRO_WIP_VERSION)) int size = file_size(filename); diff --git a/src/util/msk_file.c b/src/util/msk_file.c index 4d9329c4f..563794a17 100644 --- a/src/util/msk_file.c +++ b/src/util/msk_file.c @@ -31,7 +31,7 @@ /* loads a MSK file (Animator and Animator Pro format) */ Mask *load_msk_file(const char *filename) { -#if (MAKE_VERSION(4, 2, 0) < MAKE_VERSION(ALLEGRO_VERSION, \ +#if (MAKE_VERSION(4, 2, 1) < MAKE_VERSION(ALLEGRO_VERSION, \ ALLEGRO_SUB_VERSION, \ ALLEGRO_WIP_VERSION)) int orig_size = file_size(filename);