aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-09-19 17:36:48 +0200
committerRay <raysan5@gmail.com>2019-09-19 17:36:48 +0200
commit9d53e07883b981dccf38b7b7ab335870dd3fe9d6 (patch)
tree8b3d7ff0591a5cf4b9be3aac286187c1392e4c7d
parentbce2dd1231b01964bf619a71d4c9cd2141e41f6b (diff)
downloadraylib-9d53e07883b981dccf38b7b7ab335870dd3fe9d6.tar.gz
raylib-9d53e07883b981dccf38b7b7ab335870dd3fe9d6.zip
Added preprocessor macros for GIF
-rw-r--r--src/textures.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c
index a6ace294..9307773b 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -161,9 +161,9 @@
//----------------------------------------------------------------------------------
// Module specific Functions Declaration
//----------------------------------------------------------------------------------
-
+#if defined(SUPPORT_FILEFORMAT_GIF)
static Image LoadAnimatedGIF(const char *fileName, int *frames, int **delays); // Load animated GIF file
-
+#endif
#if defined(SUPPORT_FILEFORMAT_DDS)
static Image LoadDDS(const char *fileName); // Load DDS file
#endif
@@ -2963,7 +2963,7 @@ void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destR
//----------------------------------------------------------------------------------
// Module specific Functions Definition
//----------------------------------------------------------------------------------
-
+#if defined(SUPPORT_FILEFORMAT_GIF)
// Load animated GIF data
// - Image.data buffer includes all frames: [image#0][image#1][image#2][...]
// - Number of frames is returned through 'frames' parameter
@@ -3001,6 +3001,7 @@ static Image LoadAnimatedGIF(const char *fileName, int *frames, int **delays)
return image;
}
+#endif
#if defined(SUPPORT_FILEFORMAT_DDS)
// Loading DDS image data (compressed or uncompressed)