summaryrefslogtreecommitdiff
path: root/tests/test-filesys.c
diff options
context:
space:
mode:
authorLutz Mueller <lutz@users.sourceforge.net>2001-11-24 10:49:57 +0000
committerLutz Mueller <lutz@users.sourceforge.net>2001-11-24 10:49:57 +0000
commit1e147a1a7f5017d67934e492930be8c76eda9905 (patch)
tree2f11559fd010a74aed4ac0827889409494970c4b /tests/test-filesys.c
parent8de9e5e8fd3580c943da1a600b28fb109d519ae4 (diff)
downloadlibgphoto2-1e147a1a7f5017d67934e492930be8c76eda9905.tar.gz
2001-11-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: Check for mcheck.h * tests: #ifdef HAVE_MCHECK_H git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3177 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests/test-filesys.c')
-rw-r--r--tests/test-filesys.c28
1 files changed, 25 insertions, 3 deletions
diff --git a/tests/test-filesys.c b/tests/test-filesys.c
index 6df6a5857..a9bd65cfa 100644
--- a/tests/test-filesys.c
+++ b/tests/test-filesys.c
@@ -1,6 +1,28 @@
+/* test-filesys.c
+ *
+ * Copyright (C) 2001 Lutz Müller <urc8@rz.uni-karlsruhe.de>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+#include <config.h>
+
#include <stdio.h>
#include <string.h>
-#ifdef _GNU_SOURCE
+
+#ifdef HAVE_MCHECK_H
#include <mcheck.h>
#endif
@@ -88,7 +110,7 @@ main (int argc, char **argv)
int x, count;
const char *name;
-#ifdef _GNU_SOURCE
+#ifdef HAVE_MCHECK_H
mtrace();
#endif
@@ -210,7 +232,7 @@ main (int argc, char **argv)
printf ("*** Freeing file system...\n");
CHECK (gp_filesystem_free (fs));
-#ifdef _GNU_SOURCE
+#ifdef HAVE_MCHECK_H
muntrace();
#endif