add exif-system.h header
authorHans Ulrich Niedermann <hun@n-dimensional.de>
Tue, 26 Jun 2007 02:03:47 +0000 (04:03 +0200)
committerHans Ulrich Niedermann <hun@n-dimensional.de>
Tue, 26 Jun 2007 02:03:47 +0000 (04:03 +0200)
libexif/Makefile.am
libexif/exif-system.h [new file with mode: 0644]

index 9b96370..d4683df 100644 (file)
@@ -1,3 +1,5 @@
+EXTRA_DIST =
+
 SUBDIRS = canon olympus pentax
 
 lib_LTLIBRARIES = libexif.la
@@ -62,7 +64,9 @@ libexifinclude_HEADERS =      \
        exif-utils.h            \
        _stdint.h
 
-EXTRA_DIST = libexif.sym
+EXTRA_DIST += exif-system.h
+
+EXTRA_DIST += libexif.sym
 
 DISTCLEANFILES = _stdint.h
 
diff --git a/libexif/exif-system.h b/libexif/exif-system.h
new file mode 100644 (file)
index 0000000..eb532f3
--- /dev/null
@@ -0,0 +1,14 @@
+/** \file exif-system.h
+ * \brief System specific definitions, not for installation!
+ */
+
+#ifndef EXIF_SYSTEM_H
+#define EXIF_SYSTEM_H
+
+#if defined(__GNUC__) && (__GNUC__ >= 2)
+# define UNUSED(param) UNUSED_PARAM_##param __attribute__((unused))
+#else
+# define UNUSED(param) param
+#endif
+
+#endif /* !defined(EXIF_SYSTEM_H) */