about summary refs log tree commit diff stats
path: root/src/config/files.h
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-06-12 16:12:21 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-06-12 16:12:21 +0200
commit74e061165a808883c5b17ff356bde60fa335cbda (patch)
treef0cb35ac30ee9fb90a00ba0e93ec4e84326979bc /src/config/files.h
parentf1141932fc45fa4bcc87984241b524381c0ab2b3 (diff)
downloadprofani-tty-74e061165a808883c5b17ff356bde60fa335cbda.tar.gz
Define POSIX macro to have strdup
https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602
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
Diffstat (limited to 'src/config/files.h')
-rw-r--r--src/config/files.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/files.h b/src/config/files.h
index 0abd7f6f..c87c4501 100644
--- a/src/config/files.h
+++ b/src/config/files.h
@@ -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