Define POSIX macro to have strdup
98c38dc6d6
sets C99 as standard.
strdup() is not part of C99.
For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99.
Using `gnu99` instead would be another option.
We should take more care to use glib functions whenever possible.
Regards https://github.com/profanity-im/profanity/issues/1357
This commit is contained in:
@@ -60,10 +60,10 @@
|
||||
|
||||
void files_create_directories(void);
|
||||
|
||||
char* files_get_config_path(char *config_base);
|
||||
char* files_get_data_path(char *data_base);
|
||||
gchar* files_get_config_path(char *config_base);
|
||||
gchar* files_get_data_path(char *data_base);
|
||||
|
||||
char* files_get_log_file(char *log_file);
|
||||
char* files_get_inputrc_file(void);
|
||||
gchar* files_get_log_file(char *log_file);
|
||||
gchar* files_get_inputrc_file(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user