Mercurial > repos > blastem
diff util.h @ 876:540cc4a7d626
Fix Android build breakage
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 09 Nov 2015 20:55:17 -0800 |
parents | 54ffba3768d6 |
children | 229c23b3ab73 |
line wrap: on
line diff
--- a/util.h Sun Nov 08 22:03:34 2015 -0800 +++ b/util.h Mon Nov 09 20:55:17 2015 -0800 @@ -11,9 +11,9 @@ //Utility functions //Allocates a new string containing the concatenation of first and second -char * alloc_concat(char * first, char * second); +char * alloc_concat(char const * first, char const * second); //Allocates a new string containing the concatenation of the strings pointed to by parts -char * alloc_concat_m(int num_parts, char ** parts); +char * alloc_concat_m(int num_parts, char const ** parts); //Returns the size of a file using fseek and ftell long file_size(FILE * f); //Strips whitespace and non-printable characters from the beginning and end of a string @@ -29,7 +29,7 @@ //Returns the user's home directory char * get_home_dir(); //Returns an appropriate path for storing config files -char *get_config_dir(); +char const *get_config_dir(); //Reads a file bundled with the executable char *read_bundled_file(char *name, long *sizeret); //Retunrs an array of normal files and directories residing in a directory