aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/utils.c b/src/utils.c
index 974088f3..5340b3e5 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -35,17 +35,18 @@
#include <android/asset_manager.h>
#endif
-#include <stdlib.h> // malloc(), free()
-#include <stdio.h> // printf(), fprintf()
-#include <stdarg.h> // Used for functions with variable number of parameters (TraceLog())
-//#include <string.h> // String management functions: strlen(), strrchr(), strcmp()
+#include <stdlib.h> // Required for: malloc(), free()
+#include <stdio.h> // Required for: fopen(), fclose(), fputc(), fwrite(), printf(), fprintf(), funopen()
+#include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end()
+//#include <string.h> // Required for: strlen(), strrchr(), strcmp()
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_RPI)
#define STB_IMAGE_WRITE_IMPLEMENTATION
- #include "stb_image_write.h" // Create PNG file
+ #include "external/stb_image_write.h" // Required for: stbi_write_png()
#endif
-#include "tinfl.c"
+#include "external/tinfl.c" // Required for: tinfl_decompress_mem_to_mem()
+ // NOTE: Deflate algorythm data decompression
//----------------------------------------------------------------------------------
// Global Variables Definition
@@ -247,7 +248,7 @@ FILE *android_fopen(const char *fileName, const char *mode)
AAsset *asset = AAssetManager_open(assetManager, fileName, 0);
- if(!asset) return NULL;
+ if (!asset) return NULL;
return funopen(asset, android_read, android_write, android_seek, android_close);
}