summaryrefslogtreecommitdiff
path: root/src/fr-command-cfile.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-10-01 13:11:03 +0200
committerraveit65 <[email protected]>2019-10-03 11:27:14 +0200
commit7d5048dcb46585fd4328ad1c2a4942aee02a22a0 (patch)
treeefe058b2ce2d06b47b111d0623f1dbbc30615126 /src/fr-command-cfile.c
parentf10463c3de365ebdeb073892f79331c35de4c601 (diff)
downloadengrampa-7d5048dcb46585fd4328ad1c2a4942aee02a22a0.tar.bz2
engrampa-7d5048dcb46585fd4328ad1c2a4942aee02a22a0.tar.xz
Set compiler debug flags using MATE_DEBUG_CHECK and update configure summary
test: $ ./autogen.sh --enable-debug=profile --prefix=/usr <cut> Configuration: Source code location: . Compiler: gcc Compiler flags: -g -pg Warning flags: -Wall -Wmissing-prototypes Linker flags: -pg Caja support: yes PackageKit support: yes Run in place no Use libmagic: no JSON support: yes Now type `make' to compile engrampa $ ./autogen.sh --enable-debug --prefix=/usr <cut> Configuration: Source code location: . Compiler: gcc Compiler flags: -g -O0 Warning flags: -Wall -Wmissing-prototypes Linker flags: Caja support: yes PackageKit support: yes Run in place no Use libmagic: no JSON support: yes Now type `make' to compile engrampa $ grep MATE_ENABLE_DEBUG config.h
Diffstat (limited to 'src/fr-command-cfile.c')
-rw-r--r--src/fr-command-cfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fr-command-cfile.c b/src/fr-command-cfile.c
index fff8bfb..697d8ab 100644
--- a/src/fr-command-cfile.c
+++ b/src/fr-command-cfile.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include <config.h>
+
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
@@ -76,7 +78,7 @@ get_uncompressed_name_from_archive (FrCommand *comm,
while (g_input_stream_read (stream, buffer, 1, NULL, NULL) > 0) {
if (buffer[0] == '\0') {
filename = g_strdup (file_name_from_path (str->str));
-#ifdef DEBUG
+#ifdef MATE_ENABLE_DEBUG
g_message ("filename is: %s", filename);
#endif
break;